fix link button events

pull/387/head
Cory LaViska 2021-03-24 11:33:44 -04:00
rodzic 9e325dffa0
commit 25f63df53a
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -17,6 +17,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- Fixed a bug where using `sl-menu` inside a shadow root would break keyboard selections [#382](https://github.com/shoelace-style/shoelace/issues/382)
- Fixed a bug where toggling `multiple` in `sl-select` would lead to a stale display label
- Fixed a bug in `sl-tab-group` where changing `placement` could result in the active tab indicator being drawn a few pixels off
- Fixed a bug in `sl-button` where link buttons threw an error on focus, blur, and click
- Improved `@watch` decorator to run after update instead of during
- Updated `sl-menu-item` checked icon to `check` instead of `check2`
- Upgraded the status of `sl-resize-observer` from experimental to stable

Wyświetl plik

@ -217,9 +217,9 @@ export default class SlButton extends LitElement {
target=${ifDefined(this.target)}
download=${ifDefined(this.download)}
rel=${ifDefined(this.target ? 'noreferrer noopener' : undefined)}
onblur=${this.handleBlur}
onfocus=${this.handleFocus}
onclick=${this.handleClick}
@blur=${this.handleBlur}
@focus=${this.handleFocus}
@click=${this.handleClick}
>
${interior}
</a>