Abort conditional mediation when the button disconnects
This commit is contained in:
@@ -30,6 +30,7 @@ class PasskeyButton extends HTMLElement {
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
this.abortConditionalMediation?.()
|
||||
this.button.removeEventListener("click", this.#perform)
|
||||
this.button.disabled = false
|
||||
this.#hideErrors()
|
||||
|
||||
Reference in New Issue
Block a user