kopia lustrzana https://github.com/shoelace-style/shoelace
Fix disabled prop
rodzic
19243939a1
commit
7d20996781
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Ładowanie…
Reference in New Issue