1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

fix clicking on room dir item

This commit is contained in:
Bruno Windels
2019-09-13 11:09:02 +02:00
parent 7cb817c7bc
commit bf460dbd3d

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();}}
>