fix: Picklist: Unexpected behavior on double click while holding control
parent
b85876be95
commit
79d751bfcd
|
@ -107,6 +107,7 @@ describe('PickList.vue', () => {
|
||||||
|
|
||||||
expect(wrapper.emitted()['update:modelValue'][0][0][1]).toEqual([wrapper.vm.modelValue[0][0]]);
|
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-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([[], []]);
|
expect(wrapper.emitted()['update:selection'][0][0]).toEqual([[], []]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -440,7 +440,7 @@ export default {
|
||||||
|
|
||||||
this.$emit('move-to-target', {
|
this.$emit('move-to-target', {
|
||||||
originalEvent: event,
|
originalEvent: event,
|
||||||
items: selection
|
items: [...new Set(selection)]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.d_selection[0] = [];
|
this.d_selection[0] = [];
|
||||||
|
@ -500,7 +500,7 @@ export default {
|
||||||
|
|
||||||
this.$emit('move-to-source', {
|
this.$emit('move-to-source', {
|
||||||
originalEvent: event,
|
originalEvent: event,
|
||||||
items: selection
|
items: [...new Set(selection)]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.d_selection[1] = [];
|
this.d_selection[1] = [];
|
||||||
|
|
Loading…
Reference in New Issue