Message.tsx: Don't handle clicks outside of container
This commit is contained in:
parent
d8708e4e73
commit
5e0534310e
1 changed files with 4 additions and 1 deletions
|
@ -2668,6 +2668,10 @@ export class Message extends React.PureComponent<Props, State> {
|
||||||
className={containerClassnames}
|
className={containerClassnames}
|
||||||
style={containerStyles}
|
style={containerStyles}
|
||||||
onContextMenu={this.showContextMenu}
|
onContextMenu={this.showContextMenu}
|
||||||
|
role="row"
|
||||||
|
onKeyDown={this.handleKeyDown}
|
||||||
|
onClick={this.handleClick}
|
||||||
|
tabIndex={-1}
|
||||||
>
|
>
|
||||||
{this.renderAuthor()}
|
{this.renderAuthor()}
|
||||||
{this.renderContents()}
|
{this.renderContents()}
|
||||||
|
@ -2717,7 +2721,6 @@ export class Message extends React.PureComponent<Props, State> {
|
||||||
// cannot be within another button
|
// cannot be within another button
|
||||||
role="button"
|
role="button"
|
||||||
onKeyDown={this.handleKeyDown}
|
onKeyDown={this.handleKeyDown}
|
||||||
onClick={this.handleClick}
|
|
||||||
onFocus={this.handleFocus}
|
onFocus={this.handleFocus}
|
||||||
ref={this.focusRef}
|
ref={this.focusRef}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue