From 4fd37867617442f216b57228c9d64251e6e487f4 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 a8f41ebd3b..05239252af 100644 --- a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue +++ b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue @@ -583,8 +583,8 @@ export default { t, n, - onToggle() { - if (this.disabled) { + onToggle(event) { + if (this.disabled || event.target.tagName.toLowerCase() === 'a') { return }