mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01: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
|
||||
this.removeEventListener("change", this._oldChange);
|
||||
|
||||
this._searchInputNode.removeEventListener("change", this._searchInputNode.handleChange);
|
||||
this._searchInputNode.addEventListener("change", this._handleSearchChange);
|
||||
this._searchInputNode?.removeEventListener("change", this._searchInputNode.handleChange);
|
||||
this._searchInputNode?.addEventListener("change", this._handleSearchChange);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user