Controlled Dialog and onOpenChange inconsistency #47
-
If I don't use a Dialog.Trigger, but use In persistent dialog pattern that opening |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
onOpenChange
only gets called when corvu changes the open state internally. The purpose of this callback is to allow you to reflect state changes to your signal, if you directly edit your signal you don't have to be notified because your signal is already up to date. Normally you'd putsetOpen
inside onOpenChange to sync it:<Dialog open={open()} onOpenChange={setOpen} />