Explain why search results are cleared when eventId changes
This commit is contained in:
parent
dca2be6325
commit
e58e4db628
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue