mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
@ -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);
|
||||
|
Reference in New Issue
Block a user