mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +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 { ActionSheetButton, ActionSheetOptions, actionSheetController } from '@ionic/core/components';
|
||||
import { defineCustomElement } from '@ionic/core/components/ion-action-sheet.js';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
import { HookOverlayOptions } from './HookOverlayOptions';
|
||||
@ -11,7 +12,8 @@ import { useController } from './useController';
|
||||
export function useIonActionSheet(): UseIonActionSheetResult {
|
||||
const controller = useController<ActionSheetOptions, HTMLIonActionSheetElement>(
|
||||
'IonActionSheet',
|
||||
actionSheetController
|
||||
actionSheetController,
|
||||
defineCustomElement
|
||||
);
|
||||
|
||||
const present = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user