Skip to content

Commit

Permalink
fix(Quote): prevent button click event from propagation
Browse files Browse the repository at this point in the history
- button is wrapped in a <a> link, so bubbling click event doesn't get captured by router-link, and causes watning dialog to be shown

Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jul 26, 2024
1 parent b935e30 commit 631980e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Quote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ components.
class="quote__close"
type="tertiary"
:aria-label="cancelQuoteLabel"
@click="handleAbort">
@click.stop.prevent="handleAbort">
<template #icon>
<Close :size="20" />
</template>
Expand Down

0 comments on commit 631980e

Please sign in to comment.