shentao / vue-multiselect

Universal select/multiselect/tagging component for Vue.js
https://vue-multiselect.js.org/
MIT License
6.66k stars 989 forks source link

The select didn't close when clicking outside if set prevent-autofocus true #1665

Open johnson0903 opened 1 year ago

johnson0903 commented 1 year ago

Reproduction Link

https://codepen.io/johnson20107/pen/jOvrORL

Steps to reproduce

click the second multiselect and then click the first one

Expected behaviour

When click outside the opened multiselect, it should close.

Actual behaviour

the second multiselect didn't close and the first multiselect's options was covered.

zweeen commented 10 months ago

Hi :)

Any update on this @mattelen ?

zweeen commented 10 months ago

@johnson0903 as a workaround I use the onClickOutside Vueuse helper function