-
Notifications
You must be signed in to change notification settings - Fork 1.2k
getTreeNode(...) is undefined #4047
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
Comments
Quick question. Are you using React StrictMode in your app? Or SSR? |
I happen to have the same issue when using react 18.2.0. |
We've addressed StrictMode in #4564 Otherwise a codesandbox reproducing it would be very helpful in debugging this. |
I am far from latest versions. Will upgrade and get back to this thread. thanks! |
Closing due to this likely be handled by Strict Mode work in #4564, feel free to re-open if this is still an issue. |
🐛 Bug Report
Hello. I am trying to replicate the Select component in the official TypeScript example so I can then modify it for my application, but I get an error when clicking the dropdown button.
🤔 Expected Behavior
The popover should appear on button click.
😯 Current Behavior
I click the dropdown button and my page crashes with this error:
💁 Possible Solution
No idea sadly. I couldn't find anything about this error online.
🔦 Context
First, I copied
ListBox.tsx
,Select.tsx
andPopover.tsx
into my working TypeScript + React + Tailwind project and remove the icons.However, when I try to use it in my application I get an error on click.
💻 Code Sample
I couldn't reproduce this issue in a sandbox. Here's close representation of my code without working tailwind.
https://codesandbox.io/s/sweet-hooks-b3fpwx
If this gets any attention, I can link to my public repo and a broken branch for testing.
🌍 Your Environment
🧢 Your Company/Team
I'm not an Adobe employee. I'm a Software Engineer using React Aria for my own projects.
🕷 Tracking Issue (optional)
N/A
The text was updated successfully, but these errors were encountered: