mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
SearchMixin: Avoid errors if searchInputNode is not created
This commit is contained in:
parent
9ea00bb95f
commit
0004aa5bb4
@ -563,8 +563,8 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
// We catch all change events, then call this._oldChange only when value changes
|
// We catch all change events, then call this._oldChange only when value changes
|
||||||
this.removeEventListener("change", this._oldChange);
|
this.removeEventListener("change", this._oldChange);
|
||||||
|
|
||||||
this._searchInputNode.removeEventListener("change", this._searchInputNode.handleChange);
|
this._searchInputNode?.removeEventListener("change", this._searchInputNode.handleChange);
|
||||||
this._searchInputNode.addEventListener("change", this._handleSearchChange);
|
this._searchInputNode?.addEventListener("change", this._handleSearchChange);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user