radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
4.19k stars 242 forks source link

[Bug]: Popover in Tags Input with Combobox doesn't close when clicking outside. #410

Open BroccoliBasti opened 5 months ago

BroccoliBasti commented 5 months ago

Reproduction

https://stackblitz.com/edit/cku9c3?file=src%2FApp.vue

Describe the bug

When using the Tags Input with Combobox the popover doesn't close when you click outside of it, nor can it be closed by any other means. This issue is also present in the documentation page for Tags Input: Popover issue

System Info

Tested in the latest versions of both Brave and Firefox.

Contributes

sadeghbarati commented 5 months ago

@BroccoliBasti Hey just use dismissable on CommandList

For some reason, we decided to make the default dismissable prop in CommandList to false, until the new Listbox component arrives at the radix-vue

The reason was Popover already had DismissableLayer and CommandList also had the same functionality too

Flowko commented 4 months ago

@sadeghbarati any news about this ? since Listbox component was released

letovsk1y commented 3 months ago

@sadeghbarati any updates? ListBox released, dismissable now deprecated and removed at 2.0.0 version of radix vue

sadeghbarati commented 3 months ago

@Flowko sorry for late response @letovsk1y

https://stackblitz.com/edit/5stbzq?file=src%2FApp.vue

Popover + Listbox is more recommended for now

Hope v2 land soon then we can use these component without worrying about these problems