Skip to content

Commit 835842b

Browse files
committed
fix(editor): fix react error that does not allow tooltip prop on <a>
1 parent db6e79f commit 835842b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common/components/OptionButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export default class OptionButton extends Component {
1616
}
1717

1818
render () {
19-
const {children, tooltip} = this.props
19+
const {children, tooltip, ...other} = this.props
2020
const button = (
2121
<Button
22-
{...this.props}
22+
{...other}
2323
href='#' // required for button width to appear correctly
2424
onClick={this._onClick}>
2525
{children}

0 commit comments

Comments
 (0)