mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(react): add onPointerDown, onTouchEnd, add onTouchMove (#29736)
Issue number: resolves #29174 --------- ## What is the current behavior? React throws tab errors with `IonTabButton` when binding to `onPointerDown`, `onTouchEnd` and `onTouchMove` ## What is the new behavior? - Adds missing type definitions for `onPointerDown`, `onTouchEnd` and `onTouchMove` to `IonTaButton` - React does not throw type errors when binding callback functions to these events --------- ## Does this introduce a breaking change? - [ ] Yes - [x] No --------- Co-authored-by: steven <sribeiro@gio.lu>
This commit is contained in:
@ -10,6 +10,9 @@ type Props = LocalJSX.IonTabButton &
|
|||||||
routerOptions?: RouterOptions;
|
routerOptions?: RouterOptions;
|
||||||
ref?: React.Ref<HTMLIonTabButtonElement>;
|
ref?: React.Ref<HTMLIonTabButtonElement>;
|
||||||
onClick?: (e: CustomEvent) => void;
|
onClick?: (e: CustomEvent) => void;
|
||||||
|
onPointerDown?: React.PointerEventHandler<HTMLIonTabButtonElement>;
|
||||||
|
onTouchEnd?: React.TouchEventHandler<HTMLIonTabButtonElement>;
|
||||||
|
onTouchMove?: React.TouchEventHandler<HTMLIonTabButtonElement>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const IonTabButton = /*@__PURE__*/ (() =>
|
export const IonTabButton = /*@__PURE__*/ (() =>
|
||||||
|
Reference in New Issue
Block a user