prevent space to scroll page

This commit is contained in:
Aresn 2018-05-08 11:16:17 +08:00 committed by GitHub
parent 2f40e7ea73
commit 7fa3f9efcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@
tabindex="0"
ref="navContainer"
@keydown="handleTabKeyNavigation"
@keydown.space="handleTabKeyboardSelect"
@keydown.space.prevent="handleTabKeyboardSelect"
>
<div ref="navWrap" :class="[prefixCls + '-nav-wrap', scrollable ? prefixCls + '-nav-scrollable' : '']">
<span :class="[prefixCls + '-nav-prev', scrollable ? '' : prefixCls + '-nav-scroll-disabled']" @click="scrollPrev"><Icon type="chevron-left"></Icon></span>