kopia lustrzana https://github.com/shoelace-style/shoelace
Fix link button type bug
rodzic
e619963356
commit
bc5ea9cf00
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.0.0-beta.13
|
||||||
|
|
||||||
|
- Fixed a bug where link buttons would have `type="button"`
|
||||||
|
|
||||||
## 2.0.0-beta.12
|
## 2.0.0-beta.12
|
||||||
|
|
||||||
- Added support for `href`, `target`, and `download` to buttons
|
- Added support for `href`, `target`, and `download` to buttons
|
||||||
|
|
|
@ -140,7 +140,7 @@ export class Button {
|
||||||
'button--pill': this.pill
|
'button--pill': this.pill
|
||||||
}}
|
}}
|
||||||
disabled={this.disabled}
|
disabled={this.disabled}
|
||||||
type={isButton && this.submit ? 'submit' : 'button'}
|
type={isButton ? (this.submit ? 'submit' : 'button') : null}
|
||||||
name={isButton ? this.name : null}
|
name={isButton ? this.name : null}
|
||||||
value={isButton ? this.value : null}
|
value={isButton ? this.value : null}
|
||||||
href={isLink && this.href}
|
href={isLink && this.href}
|
||||||
|
|
Ładowanie…
Reference in New Issue