Skip to content

Commit

Permalink
Fix: removed attribute disabled from host element to avoid accessibil…
Browse files Browse the repository at this point in the history
…ity issues
  • Loading branch information
glebbo-dev committed Dec 12, 2024
1 parent dac9e93 commit b69982c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/components/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ export class Button {
this.disabled && 'disabled'
);

if (!this.disabled) {
this.hostElement.removeAttribute('disabled');
} else {
this.hostElement.setAttribute('disabled', 'true');
}

return (
<Host>
{this.styles && <style>{this.styles}</style>}
Expand Down

0 comments on commit b69982c

Please sign in to comment.