-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
next: Re-focussing popover trigger in dialog causes infinite loop #913
Comments
Could be related to #755 |
Can you put a video in the issue so I can see what is happening? |
Screen.Recording.2024-11-14.at.10.39.27.AM.mov |
Thanks, I see it now. Appears to be running into a race condition where the focus event for the next is triggering before the previous has cleaned up causing it to basically go into a very brief loop of focusin/out calls. I'll need to investigate this one a bit to determine how to best approach it. To be clear and as a reminder to myself, this only happens when rapidly opening and then closing the popover. |
On my app when this happens the loop doesn't stop, so the browser tab freezes and has to be killed. Is there something I can do to bypass this issue until it's fixed? |
Same here. It freezes the application and renders some parts unusable. |
I'm working on it 😃 |
Describe the bug
If you click on the popover trigger inside of a dialog too quickly (repeatedly) it will cause an infinite loop of focussing/refocussing and there will be an error in console. Best case, the browser stops it, worst case, you crash your tab and have to restart your browser
Reproduction
https://stackblitz.com/edit/stackblitz-starters-zuwmee?file=src%2Froutes%2F%2Bpage.svelte
Logs
System Info
Severity
blocking all usage of bits-ui
The text was updated successfully, but these errors were encountered: