Skip to content

Commit

Permalink
fix(ld-button): prevent event propagation on aria disabled button click
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Aug 4, 2021
1 parent 7a7c9d7 commit 0e0da81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/liquid/components/ld-button/ld-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class LdButton {
const ariaDisabled = this.button.getAttribute('aria-disabled')
if (ariaDisabled && ariaDisabled !== 'false') {
ev.preventDefault()
ev.stopImmediatePropagation()
}
}

Expand Down

0 comments on commit 0e0da81

Please sign in to comment.