Skip to content

Commit

Permalink
fix(VChip): add stopPropagation on close event (#17947)
Browse files Browse the repository at this point in the history
fixes #17804

Co-authored-by: John Leider <john@vuetifyjs.com>
  • Loading branch information
prashantsinghb and johnleider committed Aug 8, 2023
1 parent 6f30e56 commit 54a340e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VChip/VChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ export const VChip = genericComponent<VChipSlots>()({
const closeProps = computed(() => ({
'aria-label': t(props.closeLabel),
onClick (e: MouseEvent) {
e.stopPropagation()

isActive.value = false

emit('click:close', e)
Expand Down

0 comments on commit 54a340e

Please sign in to comment.