mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-03 19:41:20 +02:00
Explain why search results are cleared when eventId changes
This commit is contained in:
parent
dca2be6325
commit
e58e4db628
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user