Skip to content

Commit

Permalink
feat: add htmlElementRef class getter (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandroTorresSicilia authored Sep 9, 2020
1 parent fab761b commit 11dc46c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default class Button extends Component {
this.buttonRef = React.createRef();
}

get htmlElementRef() {
return this.buttonRef.current;
}

isDisabled() {
const { disabled, isLoading } = this.props;
return disabled || isLoading;
Expand Down

0 comments on commit 11dc46c

Please sign in to comment.