@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-ai/ui",
3
- "version": "0.0.0-dev-17918",
3
+ "version": "0.0.0-dev-17923",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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