Skip to content
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

[bug]: Landing page crashes when examples > forms > account > language selection dropdown clicked. #4096

Open
2 tasks done
manjushsh opened this issue Jun 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@manjushsh
Copy link

manjushsh commented Jun 25, 2024

Describe the bug

UI breaks with following errors on https://ui.shadcn.com. Not issue with any components.
image

This happens due to CommandItem component

Affected component/components

Dropdown/Select or CommandItem.

Works fine when h2 or other element is used.
image

How to reproduce

  1. Go to https://ui.shadcn.com/
  2. From examples section click the following:
image 3. Open console to see error as suggested: image

Codesandbox/StackBlitz link

No response

Logs

TypeError: items is undefined
    NextJS 12
97525-01e51dd4c392194a.js:1:5105
    NextJS 66
The resource at “https://ui.shadcn

On local:

react-dom.development.js:20702 Uncaught 
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at A (index.mjs:20:4277)
    at U (index.mjs:20:3290)
    at eval (index.mjs:20:2050)
    at eval (index.mjs:20:13055)
    at Map.forEach (<anonymous>)
    at eval (index.mjs:20:13044)
    at commitHookEffectListMount (

System Info

Mozilla Firefox v 127.0.1 on Macbook M2

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@manjushsh manjushsh added the bug Something isn't working label Jun 25, 2024
@manjushsh manjushsh changed the title [bug]: Page crashes when examples > forms > account > language selection dropdown clicked. [bug]: Landing page crashes when examples > forms > account > language selection dropdown clicked. Jun 25, 2024
@Nem4
Copy link

Nem4 commented Jun 25, 2024

Can confirm.
This also happens with this Language select inside of Components -> Combobox -> Form (docs)

image
image

@manjushsh
Copy link
Author

Thanks @Nem4. I have updated #4097 with fix for this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants