Merge pull request #2260 from harveylee/fix-row-checkbox-event-propagation
Add stop modifier to RowCheckbox click eventpull/2309/head
commit
3c03064c1c
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<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}]"
|
<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)">
|
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>
|
<span :class="['p-checkbox-icon', {'pi pi-check': checked}]"></span>
|
||||||
|
|
Loading…
Reference in New Issue