fix clicking on room dir item

This commit is contained in:
Bruno Windels 2019-09-13 11:09:02 +02:00 committed by David Baker
parent d394e76254
commit 820869d99b

View file

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