wenzhixin / multiple-select

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

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

Open dingwanren opened 7 months ago

dingwanren commented 7 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.