Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xing-He authored and jaywcjlove committed Nov 11, 2017
1 parent 3b19d4a commit 1f9a409
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/alert/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export default class Alert extends Component {

componentWillReceiveProps(nextProps, nextState) {
this.setState({ ...nextProps })
if (nextProps.visible !== this.props.visible) {
this.removeRootDom();
}
}

handleClose(e) {
Expand Down

0 comments on commit 1f9a409

Please sign in to comment.