Skip to content

Commit

Permalink
Merge pull request #2260 from harveylee/fix-row-checkbox-event-propag…
Browse files Browse the repository at this point in the history
…ation

Add stop modifier to RowCheckbox click event
  • Loading branch information
tugcekucukoglu authored Mar 14, 2022
2 parents 7642624 + 2c11486 commit 3c03064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/RowCheckbox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="['p-checkbox p-component', {'p-checkbox-focused': focused}]" @click="onClick">
<div :class="['p-checkbox p-component', {'p-checkbox-focused': focused}]" @click.stop.prevent="onClick">
<div ref="box" :class="['p-checkbox-box p-component', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]"
role="checkbox" :aria-checked="checked" :tabindex="$attrs.disabled ? null : '0'" @keydown.space.prevent="onClick" @focus="onFocus($event)" @blur="onBlur($event)">
<span :class="['p-checkbox-icon', {'pi pi-check': checked}]"></span>
Expand Down

0 comments on commit 3c03064

Please sign in to comment.