mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +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:
@ -4,6 +4,7 @@ import {
|
||||
PickerOptions,
|
||||
pickerController,
|
||||
} from '@ionic/core/components';
|
||||
import { defineCustomElement } from '@ionic/core/components/ion-picker.js';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
import { HookOverlayOptions } from './HookOverlayOptions';
|
||||
@ -16,7 +17,8 @@ import { useController } from './useController';
|
||||
export function useIonPicker(): UseIonPickerResult {
|
||||
const controller = useController<PickerOptions, HTMLIonPickerElement>(
|
||||
'IonPicker',
|
||||
pickerController
|
||||
pickerController,
|
||||
defineCustomElement
|
||||
);
|
||||
|
||||
const present = useCallback((
|
||||
|
||||
Reference in New Issue
Block a user