@opencode-ai/ui 1.18.22 → 1.18.24

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": "1.18.22",
3
+ "version": "1.18.24",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -88,10 +88,10 @@ function init() {
88
88
  setClosing = setClosingSignal
89
89
  return (
90
90
  <Kobalte
91
- modal
91
+ modal={stack().at(-1)?.id === id}
92
92
  open={!closing()}
93
93
  onOpenChange={(open: boolean) => {
94
- if (open) return
94
+ if (open || stack().at(-1)?.id !== id) return
95
95
  close(id)
96
96
  }}
97
97
  >