Browse Source

Carousel: add type="button" to navigation buttons

Leopoldthecoder 7 năm trước cách đây
mục cha
commit
6497e8c1c1
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      packages/carousel/src/main.vue

+ 2 - 0
packages/carousel/src/main.vue

@@ -9,6 +9,7 @@
       :style="{ height: height }">
       <transition name="carousel-arrow-left">
         <button
+          type="button"
           v-if="arrow !== 'never'"
           v-show="arrow === 'always' || hover"
           @mouseenter="handleButtonEnter('left')"
@@ -20,6 +21,7 @@
       </transition>
       <transition name="carousel-arrow-right">
         <button
+          type="button"
           v-if="arrow !== 'never'"
           v-show="arrow === 'always' || hover"
           @mouseenter="handleButtonEnter('right')"