Closed giero closed 1 month ago
When I delay closing the Dialog and switch to another browser tab in Chrome, and then return to the tab with Dialog, it is still open and any interaction is blocked.
https://codesandbox.io/p/sandbox/ark-ui-dialog-forked-s7wfhn
4.1.2
Google Chrome
I've done some tests and I'm almost certain that the problem lies when Dialog is animating.
When I removed
[data-scope="dialog"][data-part="content"][data-state="open"] { animation: scaleIn 0.25s ease-out; } [data-scope="dialog"][data-part="content"][data-state="closed"] { animation: scaleOut 0.2s ease-in; }
from css - Dialog closes, but backdrop is frozen. Removing all animation code from css makes the Dialog close properly.
Good catch! Thanks for digging in further to give me a clue.
I just pushed a fix for this in Zag.js. We'll release an update shortly.
If the issue persists after upgrading, I'll re-open it.
Description
When I delay closing the Dialog and switch to another browser tab in Chrome, and then return to the tab with Dialog, it is still open and any interaction is blocked.
Link to Reproduction (or Detailed Explanation)
https://codesandbox.io/p/sandbox/ark-ui-dialog-forked-s7wfhn
Steps to Reproduce
Ark UI Version
4.1.2
Framework
Browser
Google Chrome
Additional Information
I've done some tests and I'm almost certain that the problem lies when Dialog is animating.
When I removed
from css - Dialog closes, but backdrop is frozen. Removing all animation code from css makes the Dialog close properly.