mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { OverlayEventDetail } from '@ionic/core';
|
||||
import React from 'react';
|
||||
|
||||
import { attachEventProps } from './utils';
|
||||
import { attachProps } from './utils';
|
||||
|
||||
interface OverlayBase extends HTMLElement {
|
||||
present: () => Promise<void>;
|
||||
@ -57,7 +57,7 @@ export const createControllerComponent = <OptionsType extends object, OverlayTyp
|
||||
const overlay = this.overlay = await controller.create({
|
||||
...cProps as any
|
||||
});
|
||||
attachEventProps(overlay, {
|
||||
attachProps(overlay, {
|
||||
[dismissEventName]: onDidDismiss
|
||||
}, prevProps);
|
||||
await overlay.present();
|
||||
|
Reference in New Issue
Block a user