Abort conditional mediation when the button disconnects

This commit is contained in:
Stanko K.R.
2026-03-26 16:49:59 +01:00
parent 7ae219ab23
commit 76d00d17c8
@@ -30,6 +30,7 @@ class PasskeyButton extends HTMLElement {
}
disconnectedCallback() {
this.abortConditionalMediation?.()
this.button.removeEventListener("click", this.#perform)
this.button.disabled = false
this.#hideErrors()