mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Avoid double dialog after clicking to remove a public room (#7604)
Fixes https://github.com/vector-im/element-web/issues/20681
This commit is contained in:
parent
777af0cf10
commit
6ac3a92513
1 changed files with 2 additions and 10 deletions
|
@ -611,21 +611,14 @@ export default class RoomDirectory extends React.Component<IProps, IState> {
|
|||
onMouseDown={(ev) => this.onRoomClicked(room, ev)}
|
||||
className="mx_RoomDirectory_roomDescription"
|
||||
>
|
||||
<div
|
||||
className="mx_RoomDirectory_name"
|
||||
onMouseDown={(ev) => this.onRoomClicked(room, ev)}
|
||||
>
|
||||
<div className="mx_RoomDirectory_name">
|
||||
{ name }
|
||||
</div>
|
||||
<div
|
||||
className="mx_RoomDirectory_topic"
|
||||
onMouseDown={(ev) => this.onRoomClicked(room, ev)}
|
||||
dangerouslySetInnerHTML={{ __html: topic }}
|
||||
/>
|
||||
<div
|
||||
className="mx_RoomDirectory_alias"
|
||||
onMouseDown={(ev) => this.onRoomClicked(room, ev)}
|
||||
>
|
||||
<div className="mx_RoomDirectory_alias">
|
||||
{ getDisplayAliasForRoom(room) }
|
||||
</div>
|
||||
</div>
|
||||
|
@ -637,7 +630,6 @@ export default class RoomDirectory extends React.Component<IProps, IState> {
|
|||
</div>
|
||||
<div
|
||||
onMouseDown={(ev) => this.onRoomClicked(room, ev)}
|
||||
// cancel onMouseDown otherwise shift-clicking highlights text
|
||||
className="mx_RoomDirectory_preview"
|
||||
>
|
||||
{ previewButton }
|
||||
|
|
Loading…
Reference in a new issue