Skip to content

Combobox menu popover appears empty, list items won't show up #4525

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
Agile-fox opened this issue May 15, 2023 · 2 comments
Closed

Combobox menu popover appears empty, list items won't show up #4525

Agile-fox opened this issue May 15, 2023 · 2 comments

Comments

@Agile-fox
Copy link

Agile-fox commented May 15, 2023

🐛 Bug Report

After using combobox with example usage from spectrum docs the menu is empty. List of item component just don't appear at all. But you can still select them with keyboard. Console don't show any errors
image

🤔 Expected Behavior

Combobox is showing menu items when clicked on arrow key.

😯 Current Behavior

when clicking on combobox the menu popover appears empty when items are set. Work same for controlled and uncontrolled state.

💻 Code Sample

Codesandbox

🌍 Your Environment

Software Version(s)
react-spectrum 3.26.0
Browser Firefox
Operating System Windows
@reidbarber
Copy link
Member

Looks like this is due to React Strict Mode. You can fix it by removing React.StrictMode in index.tsx: https://codesandbox.io/s/jolly-framework-8lios9?file=/src/index.tsx

Issues with React Strict Mode are actively being worked on. We have an umbrella issue for those here: #779

@devongovett
Copy link
Member

Closing in favor of umbrella.

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

3 participants