fix(ui): restore focus in stacked dialogs (#44928)

Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
This commit is contained in:
OpeOginni 2026-08-25 13:05:49 +02:00 committed by GitHub
parent 69aaa22793
commit a7444bf944
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}}
>