mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-26 05:52:05 +00:00
fix(ui): restore focus in stacked dialogs (#44928)
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
This commit is contained in:
parent
69aaa22793
commit
a7444bf944
1 changed files with 2 additions and 2 deletions
|
|
@ -88,10 +88,10 @@ function init() {
|
|||
setClosing = setClosingSignal
|
||||
return (
|
||||
<Kobalte
|
||||
modal
|
||||
modal={stack().at(-1)?.id === id}
|
||||
open={!closing()}
|
||||
onOpenChange={(open: boolean) => {
|
||||
if (open) return
|
||||
if (open || stack().at(-1)?.id !== id) return
|
||||
close(id)
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue