From 46c13a291fbb85094988cde1fccba87d83f08991 Mon Sep 17 00:00:00 2001 From: DorraJaouad Date: Fri, 23 Aug 2024 17:33:44 +0200 Subject: [PATCH] fix(NcCheckBoxRadioSwitch): does not toggle checkbox when clicking on a link Signed-off-by: DorraJaouad --- .../NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue index 07fc4addbd..5bcbc9a115 100644 --- a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue +++ b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue @@ -575,8 +575,8 @@ export default { t, n, - onToggle() { - if (this.disabled) { + onToggle(event) { + if (this.disabled || event.target.tagName.toLowerCase() === 'a') { return }