Commit 7fa3f9efcb725e881e1b7821ff80309ec8330230

Authored by Aresn
Committed by GitHub
1 parent 2f40e7ea

prevent space to scroll page

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/tabs/tabs.vue
... ... @@ -7,7 +7,7 @@
7 7 tabindex="0"
8 8 ref="navContainer"
9 9 @keydown="handleTabKeyNavigation"
10   - @keydown.space="handleTabKeyboardSelect"
  10 + @keydown.space.prevent="handleTabKeyboardSelect"
11 11 >
12 12 <div ref="navWrap" :class="[prefixCls + '-nav-wrap', scrollable ? prefixCls + '-nav-scrollable' : '']">
13 13 <span :class="[prefixCls + '-nav-prev', scrollable ? '' : prefixCls + '-nav-scroll-disabled']" @click="scrollPrev"><Icon type="chevron-left"></Icon></span>
... ...