diff --git a/site/theme/template/Content/Demo.jsx b/site/theme/template/Content/Demo.jsx index b7c6743f4e..41a73e8549 100644 --- a/site/theme/template/Content/Demo.jsx +++ b/site/theme/template/Content/Demo.jsx @@ -36,8 +36,8 @@ export default class Demo extends React.Component { shouldComponentUpdate(nextProps, nextState) { return (this.state.codeExpand || this.props.expand) !== (nextState.codeExpand || nextProps.expand) - || this.state.copied !== nextState.copied - || this.state.copyTooltipVisible !== nextState.copyTooltipVisible; + || this.state.copied !== nextState.copied + || this.state.copyTooltipVisible !== nextState.copyTooltipVisible; } componentDidMount() { @@ -176,7 +176,8 @@ export default class Demo extends React.Component { -