Ver código fonte

Update AdminReadMore component, add .prevent to click action

Daniel Supernault 1 ano atrás
pai
commit
704e7b12e0

+ 1 - 1
resources/assets/components/admin/partial/AdminReadMore.vue

@@ -1,7 +1,7 @@
 <template>
     <div>
         <div class="mb-0" :style="{ 'font-size':`${fontSize}px` }">{{ contentText }}</div>
-        <p class="mb-0"><a v-if="canStepExpand || (canExpand && !expanded)" class="font-weight-bold small" href="#" @click="expand()">Read more</a></p>
+        <p class="mb-0"><a v-if="canStepExpand || (canExpand && !expanded)" class="font-weight-bold small" href="#" @click.prevent="expand()">Read more</a></p>
     </div>
 </template>