mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 17:38:06 +02: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)
|
this.requestUpdate("resultsOpen", false)
|
||||||
}
|
}
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.setCurrentResult(this.currentResult ?? this._resultNodes[0]);
|
|
||||||
|
this.setCurrentResult(
|
||||||
|
this.currentResult && this.contains(this.currentResult) ?
|
||||||
|
this.currentResult : this._resultNodes[0]
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user