Skip to content

Commit

Permalink
fix(vue-instantsearch): prevent click on navigation items when pressi…
Browse files Browse the repository at this point in the history
…ng modifiers (#5837)
  • Loading branch information
sarahdayan authored Sep 8, 2023
1 parent 90a5e43 commit 53a2434
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/vue-instantsearch/src/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:class="suit('link')"
aria-label="First"
:href="state.createURL(0)"
@click.prevent="refine(0)"
@click.exact.left.prevent="refine(0)"
>‹‹</a
>
</template>
Expand Down Expand Up @@ -58,7 +58,7 @@
:class="suit('link')"
aria-label="Previous"
:href="state.createURL(state.currentRefinement - 1)"
@click.prevent="refine(state.currentRefinement - 1)"
@click.exact.left.prevent="refine(state.currentRefinement - 1)"
>‹</a
>
</template>
Expand Down Expand Up @@ -89,7 +89,7 @@
:class="suit('link')"
:href="state.createURL(page)"
:aria-label="`Page ${page + 1}`"
@click.prevent="refine(page)"
@click.exact.left.prevent="refine(page)"
>{{ page + 1 }}</a
>
</slot>
Expand All @@ -114,7 +114,7 @@
:class="suit('link')"
aria-label="Next"
:href="state.createURL(state.currentRefinement + 1)"
@click.prevent="refine(state.currentRefinement + 1)"
@click.exact.left.prevent="refine(state.currentRefinement + 1)"
>›</a
>
</template>
Expand Down Expand Up @@ -142,7 +142,7 @@
:class="suit('link')"
aria-label="Last"
:href="state.createURL(state.nbPages - 1)"
@click.prevent="refine(state.nbPages - 1)"
@click.exact.left.prevent="refine(state.nbPages - 1)"
>››</a
>
</template>
Expand Down

0 comments on commit 53a2434

Please sign in to comment.