You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Explain why search results are cleared when eventId changes
This commit is contained in:
@@ -170,6 +170,8 @@ module.exports = React.createClass({
|
||||
isEventHighlighted: RoomViewStore.isEventHighlighted(),
|
||||
};
|
||||
|
||||
// Clear the search results when clicking a search result (which changes the
|
||||
// currently scrolled to event, this.state.eventId).
|
||||
if (this.state.eventId !== newState.eventId) {
|
||||
newState.searchResults = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user