fix event names

pull/411/head
Cory LaViska 2021-04-01 08:50:32 -04:00
rodzic 784c173728
commit 26bfe8ef11
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -11,6 +11,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- Added `click()` method to `sl-checkbox`, `sl-radio`, and `sl-switch`
- Fixed a bug in `sl-tooltip` where events weren't properly cleaned up on disconnect
- Fixed a bug in `sl-tooltip` where they wouldn't display after toggling `disabled` off and on again [#391](https://github.com/shoelace-style/shoelace/issues/391)
- Fixed incorrect event names for `sl-after-show` and `sl-after-hide` in `sl-details`
- Improved a11y for disabled buttons that are rendered as links
- Improved a11y for `sl-button-group`

Wyświetl plik

@ -46,13 +46,13 @@ export default class SlDetails extends LitElement {
@event('sl-show') slShow: EventEmitter<void>;
/** Emitted after the details opens and all transitions are complete. */
@event('after-show') slAfterShow: EventEmitter<void>;
@event('sl-after-show') slAfterShow: EventEmitter<void>;
/** Emitted when the details closes. Calling `event.preventDefault()` will prevent it from being closed. */
@event('sl-hide') slHide: EventEmitter<void>;
/** Emitted after the details closes and all transitions are complete. */
@event('after-hide') slAfterHide: EventEmitter<void>;
@event('sl-after-hide') slAfterHide: EventEmitter<void>;
connectedCallback() {
super.connectedCallback();