Merge pull request #4604 from chz/fix/4072

fix:4072 - Picklist: Unexpected behavior on double click while holding control
pull/4572/head
Tuğçe Küçükoğlu 2023-10-13 14:58:55 +03:00 committed by GitHub
commit 730c6157a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -107,6 +107,7 @@ describe('PickList.vue', () => {
expect(wrapper.emitted()['update:modelValue'][0][0][1]).toEqual([wrapper.vm.modelValue[0][0]]);
expect(wrapper.emitted()['move-to-target'][0]).toEqual([{ originalEvent: {}, items: [wrapper.vm.modelValue[0][0]] }]);
expect(wrapper.emitted()['move-to-source'][0]).toEqual([{ originalEvent: {}, items: [wrapper.vm.modelValue[0][0]] }]);
expect(wrapper.emitted()['update:selection'][0][0]).toEqual([[], []]);
});

View File

@ -440,7 +440,7 @@ export default {
this.$emit('move-to-target', {
originalEvent: event,
items: selection
items: [...new Set(selection)]
});
this.d_selection[0] = [];
@ -500,7 +500,7 @@ export default {
this.$emit('move-to-source', {
originalEvent: event,
items: selection
items: [...new Set(selection)]
});
this.d_selection[1] = [];