Closed teleskop150750 closed 11 months ago
I'm also finding an issue with that component.
In my case if I visit https://www.shadcn-vue.com/ and simply click on "Alicia Koch" ... the browser freezes, just like you are seeing. The menu doesn't even open for me. No error in the console. CPU fan starts up, so it's doing something. Eventually have to close the tab.
The Combobox on https://www.radix-vue.com/ seems to work fine.
Chrome 119 on a Mac.
Can confirm here, using Brave browser on LinuxMint.
Fixed it by changing one line in TeamSwitcher.vue
from
<CommandItem
:value="{ label: 'Create Team' }"
@select="() => {
open = false
showNewTeamDialog = true
}"
>
<PlusCircledIcon class="mr-2 h-5 w-5" />
Create Team
</CommandItem>
to
<CommandItem
value="create-team"
@select="() => {
open = false
showNewTeamDialog = true
}"
>
<PlusCircledIcon class="mr-2 h-5 w-5" />
Create Team
</CommandItem>
@anonimusprogramus Can you make PR for this?
@sadeghbarati done, thanks for the opportunity
Thanks @anonimusprogramus @sadeghbarati ! Fixed in https://github.com/radix-vue/shadcn-vue/pull/167
Environment
Link to minimal reproduction
https://www.shadcn-vue.com/
Steps to reproduce
https://www.youtube.com/watch?v=JFARPdwyyTk
Describe the bug
"TeamSwitcher" freezes if you click "add" after searching
https://www.shadcn-vue.com/
Expected behavior
No response
Conext & Screenshots (if applicable)
No response