Update AdminReadMore component, add .prevent to click action

This commit is contained in:
Daniel Supernault 2024-03-14 05:06:28 -06:00
parent cee979eda8
commit 704e7b12e0
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -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>