You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue appears to be related to the fact that there is a standard HTML cancel event used by <dialog> component, so React adds event listener for it with useCapture: true on the root node. I'm not sure how exactly it affects onCancel but calling setStatus causes the component to re-render with opened still set to true, which opens the dialog again.
In my Confirm Dialog example, if I click on
Cancel
, the dialog reopens once.I'm using version
2.1.0-alpha1
.Screencast.from.2023-03-15.12-36-14.webm
The text was updated successfully, but these errors were encountered: