mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
Add patch from #787
This commit is contained in:
@@ -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"
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user