Fix stacking bug

pull/224/head
Cory LaViska 2020-09-16 12:42:24 -04:00
rodzic 1065ec0e61
commit 134a8b26ac
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -169,8 +169,7 @@ export class Alert {
this.host.remove();
// Remove the stack from the DOM when there are no more alerts
const openAlerts = [...stack.querySelectorAll('sl-alert')].filter((el: HTMLSlAlertElement) => el.open === true);
if (openAlerts.length === 0) {
if (stack.querySelector('sl-alert') === null) {
stack.remove();
}
}