Skip to content

Commit b75fcf5

Browse files
committed
silenced reacts DOM warning
1 parent 3e0228d commit b75fcf5

File tree

1 file changed

+3
-1
lines changed
  • packages/selenium-ide/src/neo/components/ActionButtons/More

1 file changed

+3
-1
lines changed

packages/selenium-ide/src/neo/components/ActionButtons/More/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ import classNames from "classnames";
2121

2222
export default class MoreButton extends React.Component {
2323
render() {
24+
const props = {...this.props};
25+
delete props.canFocus;
2426
return (
25-
<ActionButton tabIndex={this.props.canFocus ? "0" : "-1"} {...this.props} className={classNames({"no-focus": !this.props.canFocus}, "si-more", this.props.className)} />// eslint-disable-line react/prop-types
27+
<ActionButton tabIndex={this.props.canFocus ? "0" : "-1"} {...props} className={classNames({"no-focus": !this.props.canFocus}, "si-more", this.props.className)} />// eslint-disable-line react/prop-types
2628
);
2729
}
2830
}

0 commit comments

Comments
 (0)