Commit 66f807edfb30f81fb562ecde4cf2478a5141c35e
1 parent
d322bd7d
update Select
up / down key prevent scroll page
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/select/select.vue
@@ -15,8 +15,8 @@ | @@ -15,8 +15,8 @@ | ||
15 | @click="toggleMenu" | 15 | @click="toggleMenu" |
16 | @keydown.esc="handleKeydown" | 16 | @keydown.esc="handleKeydown" |
17 | @keydown.enter="handleKeydown" | 17 | @keydown.enter="handleKeydown" |
18 | - @keydown.up="handleKeydown" | ||
19 | - @keydown.down="handleKeydown" | 18 | + @keydown.up.prevent="handleKeydown" |
19 | + @keydown.down.prevent="handleKeydown" | ||
20 | @keydown.tab="handleKeydown" | 20 | @keydown.tab="handleKeydown" |
21 | @keydown.delete="handleKeydown" | 21 | @keydown.delete="handleKeydown" |
22 | 22 |