Skip to content

ActionMenu Not Working With Current Release: 'Cannot set properties of undefined' #3469

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

Closed
greenpixels opened this issue Sep 1, 2022 · 1 comment

Comments

@greenpixels
Copy link

🐛 Bug Report

I reinstalled my dependencies and encountered ActionMenu throwing an error when trying to open the menu.

🤔 Expected Behavior

The menu should open and show its children/items.

😯 Current Behavior

The application crashes, showing the following error:

Error in /turbo_modules/@react-aria/[email protected]/dist/main.js (409:87)
Cannot set properties of undefined (setting 'nodeToRestore')

💻 Code Sample

Stackblitz Example using the default example shown in the documentation.

🌍 Your Environment

Software Version(s)
react-spectrum 3.21.1
react 18.2.0
react-dom 18.2.0
@types/react-dom 18.0.6
@types/react 18.0.18
@reidbarber
Copy link
Member

Looks like this is related to using React Strict Mode. React Spectrum doesn't currently support strict mode, but work is being done for it at #779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants