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
The close render prop of the AlertDialog does not have any affect on the Dialog when the DialogTrigger is controlled via isOpen.
🤔 Expected Behavior?
The AlertDialog should have the ability to close a controlled Dialog.
😯 Current Behavior
There is no way to update the controlled state of the Dialog from the AlertDialog.
💁 Possible Solution
Accept an onCancel prop that can be chained to the close
🔦 Context
I have a table with a destructive action that i would like to open an AlertDialog. In order to have one drigger, model, and dialog I figured I needed to control the state of the Dialog. Especially since the table has other Pressable items that would automatically open the Dialog which would not be desired.
Provide a general summary of the issue here
The close render prop of the AlertDialog does not have any affect on the Dialog when the DialogTrigger is controlled via isOpen.
🤔 Expected Behavior?
The AlertDialog should have the ability to close a controlled Dialog.
😯 Current Behavior
There is no way to update the controlled state of the Dialog from the AlertDialog.
💁 Possible Solution
Accept an onCancel prop that can be chained to the close
🔦 Context
I have a table with a destructive action that i would like to open an AlertDialog. In order to have one drigger, model, and dialog I figured I needed to control the state of the Dialog. Especially since the table has other Pressable items that would automatically open the Dialog which would not be desired.
🖥️ Steps to Reproduce
Version
react-aria-tailwind-starter.ab9fd5c68
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macos
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: