Commit 08c3adaa by xuzhenghua

pull

parents 967a3880 db33b402
...@@ -14,9 +14,9 @@ class ClosablePopup extends Component { ...@@ -14,9 +14,9 @@ class ClosablePopup extends Component {
close ? close() : this.setState({visible: false}) close ? close() : this.setState({visible: false})
} }
componentDidUpdate(prevProps) { componentDidUpdate(prevProps, prevState) {
const {visible} = this.props const {visible} = this.props
if (prevProps.visible !== visible) { if (prevState.visible !== this.props.visible) {
this.setState({ this.setState({
visible visible
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment