Fix link button type bug

pull/168/head
Cory LaViska 2020-08-07 16:18:15 -04:00
rodzic e619963356
commit bc5ea9cf00
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,9 @@
# Changelog
## 2.0.0-beta.13
- Fixed a bug where link buttons would have `type="button"`
## 2.0.0-beta.12
- Added support for `href`, `target`, and `download` to buttons

Wyświetl plik

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