-
Notifications
You must be signed in to change notification settings - Fork 822
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
"Uncaught InternalError: too much recursion" Firefox Dropdown within Dialog #2390
Comments
I also am experiencing this when I open a Edit: Also, as a hacky workaround I can trigger the callback that opens the drawer with a delay like |
This is happening because the versions of So either you need to install versions of packages with the same |
Thanks for figuring that out @CamBurris. I can confirm that downgrading react-dialog to 1.0.3 resolves the problem. I wonder if the maintainers would be able to upgrade the dependencies and release a new version as a better long term fix to this bug? |
I had this same issue but after I updated all @radix-ui/ versions to the latest the issue solved itself. Seems like because I was making my project for a lot of days the versions got unmatched. |
Can this version compatibility be expressed in package version restrictions?
(There's obviously more including transitive dependencies, around 50 A simple |
(quote from this issue) I tried it but: |
|
"overrides": {
"@radix-ui/react-focus-scope": "1.0.4"
} |
Has anyone found a solution to this problem ?
|
I was just experiencing the same issue. I manually put the latest versions of each of the packages in my package.json file. deleted package-lock.json and node_modules folder then did a new build and it fixed the issue. For me the react-select was the one causing the recursion issue in firefox. |
Chiming in that setting My installed versions of the dialog and select packages ( Before:
After:
Footnote: Perhaps a better fix is to update all radix component packages to their latest versions, and ideally don't have multiple versions installed, unlike me. |
Using overrides with npm does not solve this issue for me.
Even with enforced same versions, the select primitive produces the recursion error inside a dialog in Firefox. Important note: In Safari and Chrome there is no error in the console, but the select inside a dialog is not usable with a keyboard. No focus states, no arrow up/down navigation. The Dropdown menu works, which is what I use until this issue is resolved. |
Downgrading to:
Along with
Solved this for me for now. |
In my case So adding the override
and reinstalling
and
|
Updating all Radix UI packages to the latest versions that have dependency to |
Updating |
Confirmed this issue is caused by a mismatch/outdated react-[ ] shadcn libraries. In my case, Fixed this by upgrading react-dropdown-menu to the latest version. Didn't even need any of the hacks suggested. npm uninstall @radix-ui/react-dropdown-menu
npm i @radix-ui/react-dropdown-menu@latest |
I fixed this with |
adding @radix-ui/react-select to the list of packages that needed to be updated to the latest version |
I have removed, re-added and nuked node_modules. Installed latest, too. Still have this issue unfortunately. What is the underlying cause? Is it a duplicate package with different versions for example? Because then it's something that can be checked. ETA: Someone in the comments said it's due to multiple versions of |
Had this issue while using Turborepo. One of my packages had older versions of shadcn components installed, so when I installed the package in my app, I would get this issue even though I wasn't directly importing/using any of the components. |
I noticed this issue after upgrading |
How I fixed itupdate all radix packages:pnpm update @radix-ui/* --latest which update my package.json to: {
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slider": "^1.2.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-tooltip": "^1.1.2",
} delete node_modules and reinstall:rm -rf ./node_modules/ && pnpm install |
Bumping select version seems to fix this weird recursion issue in Firefox when select is opened within a dialog/drawer radix-ui/primitives#2390
Same issue here |
Bug report
Current Behavior
When opening a Select within a dialog on Firefox, it triggers an infinite recursion error "Uncaught InternalError: too much recursion".
Untitled.1.mp4
Expected behavior
No recursion error to occur
Reproducible example
https://codesandbox.io/s/funny-solomon-v5xcpq?file=/src/App.js
Suggested solution
Additional context
Similar to the closed issue: #1681
Your environment
react-dropdown
2.0.4
The text was updated successfully, but these errors were encountered: