Merge pull request #3439 from matrix-org/bwindels/fixroomdir-itemclick

Fix: clicking on a room directory item takes you to the room
pull/21833/head
Bruno Windels 2019-09-13 09:55:37 +00:00 committed by GitHub
commit fcfdcb4fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ module.exports = createReactClass({
);
return (
<tr key={ room.room_id }
onClick={() => this.onRoomClicked(room)}
onClick={(ev) => this.onRoomClicked(room, ev)}
// cancel onMouseDown otherwise shift-clicking highlights text
onMouseDown={(ev) => {ev.preventDefault();}}
>