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

emitting select event when not supposed to #1662

Open dawidhallmann opened 1 year ago

dawidhallmann commented 1 year ago

Steps to reproduce

Vue3, macOS 10.15.7

v-model to variable which is initiated as null passed props:

"placeholder":"Search",
"clearOnSelect":false,
"closeOnSelect":false,
"multiple":true,
"taggable":false,
"searchable":true,
"deselectLabel":"",
"selectLabel":"",
"selectedLabel":"",
"label":"",
"options": ["Option 1", "Option 2", "Option 3"],
  1. Type anything in search input
  2. Type Cmd + Shift + Left arrow key (shortcut for selecting everything to the left of current cursor position)

Expected behaviour

do not emit select event

Actual behaviour

select event is emitted with parameter of type Event