Master react (#19439)

chore(react): react rc3 release
This commit is contained in:
Ely Lucas
2019-09-24 11:52:12 -06:00
committed by GitHub
parent e90e960294
commit 61f04e50b1
15 changed files with 71 additions and 39 deletions

View File

@ -34,12 +34,15 @@ export const createControllerComponent = <OptionsType extends object, OverlayTyp
async componentDidMount() {
const { isOpen } = this.props;
// TODO
if (isOpen as boolean) {
this.present();
}
}
componentWillUnmount() {
if (this.overlay) { this.overlay.dismiss(); }
}
async componentDidUpdate(prevProps: Props) {
if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
this.present(prevProps);