Skip to content

Commit

Permalink
fix (bindInput): remove listeners from old element (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Apr 13, 2023
1 parent 3ff5592 commit 2f0a145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/bindInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class BindInputDirective extends AsyncDirective {
*/
private __setElement(element: Element): void {
if (this.__element) {
this.__removeListenersFromElement(element);
this.__removeListenersFromElement(this.__element);
}

this.__element = element;
Expand Down

0 comments on commit 2f0a145

Please sign in to comment.