-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Max call stack - Modal._this.enforceFocus #10341
Comments
@samdenty99 The modal also keeps itself in focus. The maximum call stack error is the expected behavior. You have an infinite focus loop. Given it's the first time the problem is raised. Let's use this issue as documentation for future people facing it. |
I got this error when using a |
Got the same problem as @albinekb with a Popover (Select) inside a Modal. Why is this error normal behavior? |
I get this error when I open Dialog from Menu-component. If I open my Dialog by clicking Button I don't get the error. |
Also facing the issue when opening dialog from menu |
disableEnforceFocus inside Dialog solved this issue for me. |
O thou traveler for whom |
cheers @aaadryyy using In my case, i was receiving that error when focusing a select component inside a focus trapped form, not using a dialog component as a container, instead a straight forward portal.
|
disableEnforceFocus worked...thanksss |
|
Expected Behavior
Doesn't exceed the call stack
Current Behavior
Maximum call stack size exceeded
Steps to Reproduce (for bugs)
I can't fully reproduce this issue, as it seems it's an edge case - but this was the environment in which it occurred
Your Environment
The text was updated successfully, but these errors were encountered: