mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
Add patch from #787
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<transition :name="transition">
|
<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
|
<li
|
||||||
role="option"
|
role="option"
|
||||||
v-for="(option, index) in filteredOptions"
|
v-for="(option, index) in filteredOptions"
|
||||||
@@ -718,12 +718,22 @@
|
|||||||
* firing a `blur` event when clicking
|
* firing a `blur` event when clicking
|
||||||
* the dropdown's scrollbar, causing it
|
* the dropdown's scrollbar, causing it
|
||||||
* to collapse abruptly.
|
* to collapse abruptly.
|
||||||
|
* @see https://github.com/sagalbot/vue-select/issues/106
|
||||||
* @return {void}
|
* @return {void}
|
||||||
*/
|
*/
|
||||||
onMousedown() {
|
onMousedown() {
|
||||||
this.mousedown = true
|
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.
|
* Search 'input' KeyBoardEvent handler.
|
||||||
* @param e {KeyboardEvent}
|
* @param e {KeyboardEvent}
|
||||||
|
|||||||
Reference in New Issue
Block a user