Fix disabled prop

pull/261/head
Cory LaViska 2020-10-16 12:32:20 -04:00
rodzic 19243939a1
commit 7d20996781
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -8,6 +8,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
## Next
- Fix bug where `disabled` could be set when buttons are rendered as links
- Removed `console.log` from modal utility
## 2.0.0-beta.21

Wyświetl plik

@ -139,7 +139,7 @@ export class Button {
'button--loading': this.loading,
'button--pill': this.pill
}}
disabled={this.disabled}
disabled={isButton ? this.disabled : null}
type={isButton ? (this.submit ? 'submit' : 'button') : null}
name={isButton ? this.name : null}
value={isButton ? this.value : null}