mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
Merge remote-tracking branch 'origin/main' into chore/sync-7.0-with-main-12-05-22
This commit is contained in:
@ -55,6 +55,17 @@ export const createInlineOverlayComponent = <PropType, ElementType>(
|
||||
componentDidMount() {
|
||||
this.componentDidUpdate(this.props);
|
||||
|
||||
/**
|
||||
* Mount the inner component when the
|
||||
* overlay is about to open.
|
||||
*
|
||||
* For ion-popover, this is when `ionMount` is emitted.
|
||||
* For other overlays, this is when `willPresent` is emitted.
|
||||
*/
|
||||
this.ref.current?.addEventListener('ionMount', () => {
|
||||
this.setState({ isOpen: true });
|
||||
});
|
||||
|
||||
/**
|
||||
* Mount the inner component
|
||||
* when overlay is about to open.
|
||||
|
Reference in New Issue
Block a user