Skip to content

Commit

Permalink
🐛 stop event propagation on enter key when adding or selecting an item
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie Andraos committed Apr 26, 2020
1 parent 8ee2f60 commit a322beb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/rainbow/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
this.$emit('input', this.selectedItems);
},
navigate(event){
event.stopPropagation();
event.preventDefault();
// arrow up
if (event.keyCode === 38 && this.currentItem > 0) {
this.currentItem--;
Expand Down

0 comments on commit a322beb

Please sign in to comment.