prevent page jump due to href=#

This commit is contained in:
Kaibu
2021-11-25 01:35:12 +01:00
parent d76fdd090a
commit 9b5fe8f4e7
2 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
<b-card-body class="p-4">
<ol style="max-height: 60vh;overflow-y:auto;-webkit-overflow-scrolling: touch;" class="mb-1">
<li v-for="(recipe, index) in recipes" v-bind:key="index" v-on:click="$emit('switchRecipe', index)">
<a href="#">{{ recipe.recipe_content.name }} <recipe-rating :recipe="recipe"></recipe-rating> </a>
<a href="javascript:void(0)">{{ recipe.recipe_content.name }} <recipe-rating :recipe="recipe"></recipe-rating> </a>
</li>
</ol>
<b-card-text v-if="recipes.length === 0">