Skip to content

Commit

Permalink
Add patch from #787
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff committed Mar 23, 2019
1 parent 5ae658c commit 2ecad84
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>

<transition :name="transition">
<ul ref="dropdownMenu" v-if="dropdownOpen" class="vs__dropdown-menu" role="listbox" @mousedown="onMousedown">
<ul ref="dropdownMenu" v-if="dropdownOpen" class="vs__dropdown-menu" role="listbox" @mousedown="onMousedown" @mouseup="onMouseUp">
<li
role="option"
v-for="(option, index) in filteredOptions"
Expand Down Expand Up @@ -718,12 +718,22 @@
* firing a `blur` event when clicking
* the dropdown's scrollbar, causing it
* to collapse abruptly.
* @see https://github.com/sagalbot/vue-select/issues/106
* @return {void}
*/
onMousedown() {
this.mousedown = true
},
/**
* Event-Handler to help workaround IE11 (probably fixes 10 as well)
* @see https://github.com/sagalbot/vue-select/issues/106
* @return {void}
*/
onMouseUp() {
this.mousedown = false
},
/**
* Search 'input' KeyBoardEvent handler.
* @param e {KeyboardEvent}
Expand Down

0 comments on commit 2ecad84

Please sign in to comment.