Skip to content

Commit

Permalink
fix(button): use pointer-events to avoid native click
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho committed Jul 15, 2023
1 parent 728851a commit ad88152
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
display: block;
}

:host(.is-disabled) {
pointer-events: none;
}

.atom-button {
text-transform: inherit;

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class AtomButton {
<Host
class={{
[`expand-${this.expand}`]: !!this.expand,
[`is-disabled`]: this.disabled,
}}
>
<ion-button
Expand Down

0 comments on commit ad88152

Please sign in to comment.