mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-14 05:28:57 +08:00
fix(angular, react, vue): overlays no longer throw errors when used inside tests (#24681)
resolves #24549, resolves #24590
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { PopoverOptions, popoverController } from '@ionic/core/components';
|
||||
import { defineCustomElement } from '@ionic/core/components/ion-popover.js';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
import { ReactComponentOrElement } from '../models/ReactComponentOrElement';
|
||||
@@ -16,6 +17,7 @@ export function useIonPopover(component: ReactComponentOrElement, componentProps
|
||||
const controller = useOverlay<PopoverOptions, HTMLIonPopoverElement>(
|
||||
'IonPopover',
|
||||
popoverController,
|
||||
defineCustomElement,
|
||||
component,
|
||||
componentProps
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user