Fix composer format buttons on WebKit (#7898)
This commit is contained in:
parent
e762a6947d
commit
76ca0362e1
2 changed files with 12 additions and 6 deletions
|
@ -103,8 +103,12 @@ class FormatButton extends React.PureComponent<IFormatButtonProps> {
|
|||
</div>
|
||||
</div>;
|
||||
|
||||
// element="button" and type="button" are necessary for the buttons to work on WebKit,
|
||||
// otherwise the text is deselected before onClick can ever be called
|
||||
return (
|
||||
<AccessibleTooltipButton
|
||||
element="button"
|
||||
type="button"
|
||||
onClick={this.props.onClick}
|
||||
title={this.props.label}
|
||||
tooltip={tooltip}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue