mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Fix currentResult got set to invalid node if results were re-rendered
This commit is contained in:
parent
ca20de424e
commit
d26b620f8d
@ -594,7 +594,11 @@ export const SearchMixin = <T extends Constructor<Et2InputWidgetInterface &
|
||||
this.requestUpdate("resultsOpen", false)
|
||||
}
|
||||
event.stopPropagation();
|
||||
this.setCurrentResult(this.currentResult ?? this._resultNodes[0]);
|
||||
|
||||
this.setCurrentResult(
|
||||
this.currentResult && this.contains(this.currentResult) ?
|
||||
this.currentResult : this._resultNodes[0]
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user