Skip to content

Commit

Permalink
fix(lookup): remove listners earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed Jun 30, 2023
1 parent ea643ad commit c621d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lookup/src/mdc-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class MdcLookup implements EventListenerObject {
bodyEvents.forEach(x => document.body.addEventListener(x, this));
}

detached() {
detaching() {
if (this.input) {
inputEvents.forEach(x => this.input!.removeEventListener(x, this));
}
Expand Down

0 comments on commit c621d7c

Please sign in to comment.