pull/224/head
Cory LaViska 2020-09-14 09:23:20 -04:00
rodzic 64aae41910
commit ed393f169e
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -5,6 +5,7 @@
- Added `input`, `label`, `prefix`, `clear-button`, `suffix`, `help-text` exported parts to `sl-select` to make the input customizable
- Fixed a bug where mouse events would bubble up when `sl-button` was disabled, causing tooltips to erroneously appear
- Fixed a bug where pressing space would open and immediately close `sl-dropdown` panels in Firefox
- Fixed a bug where `sl-tooltip` would throw an error on init
- Fixed buggy custom keyframes animation example
- Refactored clear logic in `sl-input`

Wyświetl plik

@ -202,7 +202,7 @@ export class Tooltip {
const oldTarget = this.target;
const newTarget = this.getTarget();
if (newTarget !== oldTarget) {
if (oldTarget && newTarget !== oldTarget) {
oldTarget.removeAttribute('aria-describedby');
newTarget.setAttribute('aria-describedby', this.componentId);
}