fix: properly remove event listeners in Component's removeEventListener

pull/13556/head
Daniel Regeci 12 months ago
parent 484588a923
commit e6d428eb09

@ -220,6 +220,12 @@ if (typeof HTMLElement === 'function') {
this.$$l_u.delete(listener);
}
}
if (this.$$l[type]) {
const idx = this.$$l[type].indexOf(listener);
if (idx >= 0) {
this.$$l[type].splice(idx, 1);
}
}
}
async connectedCallback() {

Loading…
Cancel
Save