Fixed #3691 - DataTable: cannot uncheck when click the checkbox in column
parent
c623f45f25
commit
c3370293cd
|
@ -578,21 +578,24 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
isClickable(element) {
|
isClickable(element) {
|
||||||
const targetNode = element.nodeName;
|
if (element) {
|
||||||
const parentNode = element.parentElement && element.parentElement.nodeName;
|
const targetNode = element.nodeName;
|
||||||
|
const parentNode = element.parentElement && element.parentElement.nodeName;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
targetNode == 'INPUT' ||
|
targetNode === 'INPUT' ||
|
||||||
targetNode == 'BUTTON' ||
|
targetNode === 'TEXTAREA' ||
|
||||||
targetNode == 'A' ||
|
targetNode === 'BUTTON' ||
|
||||||
parentNode == 'INPUT' ||
|
targetNode === 'A' ||
|
||||||
parentNode == 'BUTTON' ||
|
parentNode === 'INPUT' ||
|
||||||
parentNode == 'A' ||
|
parentNode === 'TEXTAREA' ||
|
||||||
this.hasClass(element, 'p-button') ||
|
parentNode === 'BUTTON' ||
|
||||||
this.hasClass(element.parentElement, 'p-button') ||
|
parentNode === 'A' ||
|
||||||
this.hasClass(element.parentElement, 'p-checkbox') ||
|
!!element.closest('.p-button, .p-checkbox, .p-radiobutton')
|
||||||
this.hasClass(element.parentElement, 'p-radiobutton')
|
);
|
||||||
);
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
applyStyle(element, style) {
|
applyStyle(element, style) {
|
||||||
|
|
Loading…
Reference in New Issue