Fixed a bug in <sl-textarea> that may throw errors on disconnectedCallback in test environments (#1985) (#1986)

next
Christian Schilling 2024-04-22 17:40:54 +02:00 zatwierdzone przez GitHub
rodzic 64996b2d35
commit 3ad6364678
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -18,6 +18,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Fixed a bug in `<dialog>` where when it showed it would cause a layout shift. [#1967]
- Fixed a bug in `<sl-tooltip>` that allowed unwanted text properties to leak in [#1947]
- Fixed a bug in `<sl-button-group>` classes [#1974]
- Fixed a bug in `<sl-textarea>` that may throw errors on `disconnectedCallback` in test environments [#1985]
## 2.15.0

Wyświetl plik

@ -163,7 +163,9 @@ export default class SlTextarea extends ShoelaceElement implements ShoelaceFormC
disconnectedCallback() {
super.disconnectedCallback();
this.resizeObserver.unobserve(this.input);
if (this.input) {
this.resizeObserver.unobserve(this.input);
}
}
private handleBlur() {