Skip to content

Commit e1e185d

Browse files
jonny5532Jonny
andauthored
fix: Add tabindex="-1" to dropdown-menu to prevent scrollbars receiving focus (sagalbot#1304)
Co-authored-by: Jonny <jonny@jonnybarker.com>
1 parent 5dfb9e5 commit e1e185d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</div>
5454
</div>
5555
<transition :name="transition">
56-
<ul ref="dropdownMenu" v-if="dropdownOpen" :id="`vs${uid}__listbox`" :key="`vs${uid}__listbox`" class="vs__dropdown-menu" role="listbox" @mousedown.prevent="onMousedown" @mouseup="onMouseUp" v-append-to-body>
56+
<ul ref="dropdownMenu" v-if="dropdownOpen" :id="`vs${uid}__listbox`" :key="`vs${uid}__listbox`" class="vs__dropdown-menu" role="listbox" @mousedown.prevent="onMousedown" @mouseup="onMouseUp" tabindex="-1" v-append-to-body>
5757
<slot name="list-header" v-bind="scope.listHeader" />
5858
<li
5959
role="option"

0 commit comments

Comments
 (0)