wenzhixin / multiple-select

A jQuery plugin to select multiple elements with checkboxes :)
http://multiple-select.wenzhixin.net.cn
MIT License
1.9k stars 652 forks source link

Array’s mutation methods can not trigger the vue component view updates #625

Open dingwanren opened 2 months ago

dingwanren commented 2 months ago

https://multiple-select-live.wenzhixin.net.cn/code/dingwanren/17543

When using v-model to bind an array variable, the MultipleSelect component's view doesn't get updated when calling array methods like push(), pop(), and splice(). However, when I use the native select element, this issue doesn't occur. Also, there is no problem when reassigning a new value to the array variable.