This commit is contained in:
Cory LaViska
2020-09-14 09:23:20 -04:00
parent 64aae41910
commit ed393f169e
2 changed files with 2 additions and 1 deletions

View File

@@ -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`

View File

@@ -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);
}