Don't set non-working 'tooltiptext' in React Button

Follow-up to ba9c7ae739
This commit is contained in:
Dan Stillman 2021-02-06 23:50:13 -05:00
parent e9e434cd2e
commit 61e29aa8eb

View file

@ -44,13 +44,6 @@ ButtonGroup.propTypes = {
}
class Button extends PureComponent {
componentDidMount() {
if (!Zotero.isNode && this.title) {
// Workaround for XUL tooltips
this.container.setAttribute('tooltiptext', this.title);
}
}
get classes() {
return ['btn', this.props.className, `btn-${this.props.size}`, {
'btn-icon': this.props.icon != null,