Commit db33b402 by zhanghaozhe

Merge branch 'closable-popup' into 11-11

parents 0f10e25a 6600f918
......@@ -14,9 +14,9 @@ class ClosablePopup extends Component {
close ? close() : this.setState({visible: false})
}
componentDidUpdate(prevProps) {
componentDidUpdate(prevProps, prevState) {
const {visible} = this.props
if (prevProps.visible !== visible) {
if (prevState.visible !== this.props.visible) {
this.setState({
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