@opencode-ai/ui 0.0.0-dev-17918 → 0.0.0-dev-17923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/context/dialog.tsx +2 -1
package/package.json
CHANGED
package/src/context/dialog.tsx
CHANGED
|
@@ -81,6 +81,7 @@ function init() {
|
|
|
81
81
|
let dispose: (() => void) | undefined
|
|
82
82
|
let setClosing: ((closing: boolean) => void) | undefined
|
|
83
83
|
|
|
84
|
+
// Stacked dialogs render as sibling portals, so only the top layer may own the focus trap.
|
|
84
85
|
const node = runWithOwner(owner, () =>
|
|
85
86
|
createRoot((d: () => void) => {
|
|
86
87
|
dispose = d
|
|
@@ -88,7 +89,7 @@ function init() {
|
|
|
88
89
|
setClosing = setClosingSignal
|
|
89
90
|
return (
|
|
90
91
|
<Kobalte
|
|
91
|
-
modal
|
|
92
|
+
modal={stack().length <= layer + 1}
|
|
92
93
|
open={!closing()}
|
|
93
94
|
onOpenChange={(open: boolean) => {
|
|
94
95
|
if (open) return
|