Procházet zdrojové kódy

Carousel: add type="button" to navigation buttons

Leopoldthecoder před 7 roky
rodič
revize
6497e8c1c1
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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')"