mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(react): callback refs now work correctly with ionic components (#23152)
resolves #23153
This commit is contained in:

committed by
GitHub

parent
004885bfd4
commit
0dd189e2c0
@ -13,7 +13,7 @@ type Props = Omit<LocalJSX.IonBackButton, 'icon'> &
|
||||
md: string;
|
||||
}
|
||||
| string;
|
||||
ref?: React.RefObject<HTMLIonBackButtonElement>;
|
||||
ref?: React.Ref<HTMLIonBackButtonElement>;
|
||||
};
|
||||
|
||||
export const IonBackButton = /*@__PURE__*/ (() =>
|
||||
|
@ -18,7 +18,7 @@ type IonTabBarProps = LocalJSX.IonTabBar &
|
||||
};
|
||||
|
||||
interface InternalProps extends IonTabBarProps {
|
||||
forwardedRef?: React.RefObject<HTMLIonIconElement>;
|
||||
forwardedRef?: React.ForwardedRef<HTMLIonIconElement>;
|
||||
onSetCurrentTab: (tab: string, routeInfo: RouteInfo) => void;
|
||||
routeInfo: RouteInfo;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import { IonTabButtonInner } from '../inner-proxies';
|
||||
type Props = LocalJSX.IonTabButton &
|
||||
IonicReactProps & {
|
||||
routerOptions?: RouterOptions;
|
||||
ref?: React.RefObject<HTMLIonTabButtonElement>;
|
||||
ref?: React.Ref<HTMLIonTabButtonElement>;
|
||||
onClick?: (e: any) => void;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user