ui icon indicating copy to clipboard operation
ui copied to clipboard

[Bug]: <CommandGroup> TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

Open mladenovic-13 opened this issue 11 months ago • 1 comments

Describe the bug

It seems that the wrong component was used in the example.

Affected component/components

Combobox, CommandGroup, CommandList

How to reproduce

  1. Copy Combobox examle
  2. Paste example code in your project

Screenshot 2024-03-15 at 23 49 51

Codesandbox/StackBlitz link

https://v5n77l-3000.csb.app/

https://codesandbox.io/p/github/mladenovic-13/combobox-error-sandbox/master?import=true&layout=%257B%2522sidebarPanel%2522%253A%2522GIT%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cltt9afw200063b6kfstzctf4%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cltt9afw200023b6kwrm5ng8p%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cltt9afw200043b6ks1gl47kx%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cltt9afw200053b6k8dejvnsz%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cltt9afw200023b6kwrm5ng8p%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cltt9afw200013b6kmehgootn%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%257D%255D%252C%2522id%2522%253A%2522cltt9afw200023b6kwrm5ng8p%2522%252C%2522activeTabId%2522%253A%2522cltt9afw200013b6kmehgootn%2522%257D%252C%2522cltt9afw200053b6k8dejvnsz%2522%253A%257B%2522id%2522%253A%2522cltt9afw200053b6k8dejvnsz%2522%252C%2522activeTabId%2522%253A%2522cltt9crce00rf3b6kx2mvx6fk%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522id%2522%253A%2522cltt9crce00rf3b6kx2mvx6fk%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%252F%2522%257D%255D%257D%252C%2522cltt9afw200043b6ks1gl47kx%2522%253A%257B%2522id%2522%253A%2522cltt9afw200043b6ks1gl47kx%2522%252C%2522activeTabId%2522%253A%2522cltt9b9kv00ak3b6krzpeqdbf%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cltt9afw200033b6kelm924gi%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522cltt9agi8000tdcf17vteap3t%2522%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522CSB_RUN_OUTSIDE_CONTAINER%253D1%2520devcontainer%2520templates%2520apply%2520--template-id%2520%255C%2522ghcr.io%252Fdevcontainers%252Ftemplates%252Ftypescript-node%255C%2522%2520--template-args%2520%27%257B%257D%27%2520--features%2520%27%255B%255D%27%2522%252C%2522id%2522%253A%2522cltt9b7x100503b6kkkxuc6nu%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522id%2522%253A%2522cltt9b9kv00ak3b6krzpeqdbf%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Logs

No response

System Info

MacOS, Chrome

Before submitting

  • [X] I've made research efforts and searched the documentation
  • [X] I've searched for existing issues

mladenovic-13 avatar Mar 15 '24 22:03 mladenovic-13

Potential duplicates of https://github.com/shadcn-ui/ui/issues/2944.

junwen-k avatar Mar 20 '24 02:03 junwen-k