Skip to content

Commit

Permalink
Merge pull request #4604 from chz/fix/4072
Browse files Browse the repository at this point in the history
fix:4072 - Picklist: Unexpected behavior on double click while holding control
  • Loading branch information
tugcekucukoglu authored Oct 13, 2023
2 parents 8e4d792 + 79d751b commit 730c615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/lib/picklist/PickList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([[], []]);
});

Expand Down
4 changes: 2 additions & 2 deletions components/lib/picklist/PickList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export default {
this.$emit('move-to-target', {
originalEvent: event,
items: selection
items: [...new Set(selection)]
});
this.d_selection[0] = [];
Expand Down Expand Up @@ -500,7 +500,7 @@ export default {
this.$emit('move-to-source', {
originalEvent: event,
items: selection
items: [...new Set(selection)]
});
this.d_selection[1] = [];
Expand Down

0 comments on commit 730c615

Please sign in to comment.