Skip to content

Commit

Permalink
Merge pull request #6013 from nextcloud-libraries/fix/noid/link-in-ch…
Browse files Browse the repository at this point in the history
…eckbox

fix(NcCheckBoxRadioSwitch): do not toggle on a click on a link inside
  • Loading branch information
DorraJaouad authored Aug 23, 2024
2 parents d334ed4 + 46c13a2 commit a7d404d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ export default {
t,
n,
onToggle() {
if (this.disabled) {
onToggle(event) {
if (this.disabled || event.target.tagName.toLowerCase() === 'a') {
return
}
Expand Down

0 comments on commit a7d404d

Please sign in to comment.