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…
Reference in a new issue