-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal stays in DOM after closing #665
Comments
I am relatively sure I've found the underlying reason: I have activated "prefers-reduced-motion" on my system. Disabling this and it seems to work fine again and also local qunit tests now run without timeouts. My guess it that setting the animation durations to |
Working fine with PR from @pichfl 👍 |
@sebastianhelbig can you check if the behavior still happens with current |
@pichfl Working fine with current |
New release should happen soon, I just need to finish up a few things to get it out of the door. |
@pichfl How far out is a release? Out customers are seeing this issue in production and it looks like there's quite a few changes since last release so pointing against the github main branch instead feels risky. |
@bitwolfe I won't make any promises. If you need this right now, I recommend creating a fork from the current |
@pichfl Tried to do that, unfortunately Yarn 3.3.0 (latest) doesn't allow me to install from the repo. Fails with an "unsupported workflow" error which is something I've seen in other packages as well after they switched to pnpm. Very strange issue that I haven't been able to figure out. I will have to try and fork and see if it still works if I use yarn instead.. |
@pichfl An update with my findings after getting a fork of the Calling If however So TLDR: A workaround seems to be to not set a 0s duration, such as 0.01s. Then everything works fine even with 3.0.1. |
@bitwolfe I created a bug for this. I can't remember why I moved to 0s, it was a non-zero value before. |
When closing via click on the container, the modal gets "hidden" but stays in the DOM. This essentially disables all interaction with the application which then has to be reloaded to work again.
It does not always happen, but most of the time.
Screencast Chrome 102 Mac with the demo app:
https://user-images.githubusercontent.com/5049311/170370725-1b7b6ef4-29d7-467d-8e99-132d645e7fcb.mp4
I also did some debugging as in one project I often see timeouts in qunit tests with modals. It turned out that when a timeout happens, the event
animationend
is not being triggered which leads to not callingmodal._remove()
which leads to not resolving the promise. I am unsure if this is related or another problem.The text was updated successfully, but these errors were encountered: