Skip to content

Commit

Permalink
fix(component): fixed opening the menu when you click again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya authored and Ilya committed Mar 29, 2019
1 parent b8250c5 commit 046689f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gh-pages-src/pages/dev/Example5.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
:readonly="readonly"
:disable-search="disableSearch"
placeholder="Select name"
@blur="validate"
/>

<br>
Expand All @@ -28,7 +27,6 @@
:readonly="readonly"
:disable-search="disableSearch"
placeholder="Select name"
@blur="validate"
>
<template
v-if="!errorMessage && selected"
Expand Down
1 change: 1 addition & 0 deletions src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
@keyup="onSearchKeyUp"
@keydown="onSearchKeyDown"
@input="onSearch"
@mousedown="onClick"
@focus="setFocused(true)"
>

Expand Down
1 change: 1 addition & 0 deletions src/eventsListeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default {
if (this.disabled || this.readonly) return

this.setFocused()
this.showMenu()
},
// on click on item
onClickSelectItem (item) {
Expand Down

0 comments on commit 046689f

Please sign in to comment.