Skip to content

Commit

Permalink
Fix yielded submitButton after Glimmer refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Sep 5, 2020
1 parent bdb31c1 commit b33faef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addon/components/bs-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,13 @@ export default class Button extends Component {
* @default 'default'
* @private
*/
@tracked state = 'default';
@tracked _state = 'default';
get state() {
return this.args.state ?? this._state;
}
set state(state) {
this._state = state;
}

/**
* Promise returned by `onClick` event is pending.
Expand Down

0 comments on commit b33faef

Please sign in to comment.