Skip to content

Commit

Permalink
fix(ld-button): aria disabled false should not prevent default behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed May 29, 2021
1 parent 93939b0 commit da93a80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/liquid/components/ld-button/ld-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class LdButton {
@Prop() target?: '_blank' | '_self' | '_parent' | '_top'

private handleClick(ev) {
if (this.button.getAttribute('aria-disabled')) {
const ariaDisabled = this.button.getAttribute('aria-disabled')
if (ariaDisabled && ariaDisabled !== 'false') {
ev.preventDefault()
ev.stopImmediatePropagation()
}
Expand Down

0 comments on commit da93a80

Please sign in to comment.