Don't set non-working 'tooltiptext' in React Button
Follow-up to ba9c7ae739
This commit is contained in:
parent
e9e434cd2e
commit
61e29aa8eb
1 changed files with 0 additions and 7 deletions
|
@ -44,13 +44,6 @@ ButtonGroup.propTypes = {
|
||||||
}
|
}
|
||||||
|
|
||||||
class Button extends PureComponent {
|
class Button extends PureComponent {
|
||||||
componentDidMount() {
|
|
||||||
if (!Zotero.isNode && this.title) {
|
|
||||||
// Workaround for XUL tooltips
|
|
||||||
this.container.setAttribute('tooltiptext', this.title);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get classes() {
|
get classes() {
|
||||||
return ['btn', this.props.className, `btn-${this.props.size}`, {
|
return ['btn', this.props.className, `btn-${this.props.size}`, {
|
||||||
'btn-icon': this.props.icon != null,
|
'btn-icon': this.props.icon != null,
|
||||||
|
|
Loading…
Reference in a new issue