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

issue : deselect button add more items #1782

Open maha-oueghlani opened 2 months ago

maha-oueghlani commented 2 months ago

when I click on 'x' icons to deselect item, it not working and it add more items selected, you can find this on this screen video ,

this is my code :

 <VueMultiselect
                            id="depends_on"
                            v-model="form.depends_on"
                            :options="permissionStore.permissions"
                            :close-on-select="true"
                            :clear-on-select="false"
                            placeholder="Select permissions"
                            select-label=""
                            :multiple="true"
                            label="name"
                            deselect-label=""
                        />

https://github.com/user-attachments/assets/2d4533d8-0167-46f1-a0af-d6501bdb8ce6

logee48 commented 1 month ago

assign it to me, i'll fix it

am54ful commented 3 weeks ago

This is not a bug, already met this problem, need to assign the id or else will behave like yours