react-spectrum
react-spectrum copied to clipboard
React Aria Components Modal is sensitive to misconfigured animations
Provide a general summary of the issue here
Using the first example in Modal documentation I noticed that if you do not copy the key-frames definition into css the Modal cannot close itself because one of the useExitAnimation hooks in ModalOverlayWithForwardRef get stuck as true.
๐ค Expected Behavior?
Modals should close even if css makes no sense.
๐ฏ Current Behavior
Modal is stuck open but DialogTrigger thinks that it is closed.
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/p/sandbox/eager-maria-nq52gk
Version
react-aria-components: 1.1.1
What browsers are you seeing the problem on?
Firefox, Chrome
If other, please specify.
No response
What operating system are you using?
Linux
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response