mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(react): overlays now define internal ionic components (#25967)
resolves #25962
This commit is contained in:
@ -4,7 +4,6 @@ import React from 'react';
|
||||
import {
|
||||
attachProps,
|
||||
dashToPascalCase,
|
||||
defineCustomElement,
|
||||
setRef,
|
||||
} from './react-component-lib/utils';
|
||||
|
||||
@ -27,9 +26,11 @@ export const createControllerComponent = <
|
||||
>(
|
||||
tagName: string,
|
||||
controller: { create: (options: OptionsType) => Promise<OverlayType> },
|
||||
customElement?: any
|
||||
defineCustomElement?: () => void
|
||||
) => {
|
||||
defineCustomElement(tagName, customElement);
|
||||
if (defineCustomElement) {
|
||||
defineCustomElement();
|
||||
}
|
||||
|
||||
const displayName = dashToPascalCase(tagName);
|
||||
const didDismissEventName = `on${displayName}DidDismiss`;
|
||||
|
Reference in New Issue
Block a user