ref(dialog): set mounted flag after mount

This commit is contained in:
Leonard Kim 2018-10-29 14:40:14 -07:00 committed by Leonard Kim
parent 609f3887f2
commit c4f1588bb0
1 changed files with 2 additions and 2 deletions

View File

@ -49,12 +49,12 @@ export default class AbstractDialog<P : Props, S : State>
}
/**
* Implements React's {@link Component#componentWillMount()}. Invoked
* Implements React's {@link Component#componentDidMount()}. Invoked
* immediately before mounting occurs.
*
* @inheritdoc
*/
componentWillMount() {
componentDidMount() {
this._mounted = true;
}