bug: IonTabButton doesn't have default HTML event attributes typed
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
IonTabButton is missing regular HTML types (onPointerDown, onTouchEnd, onTouchMove, etc)
Expected Behavior
Should have proper types.
Steps to Reproduce
Try to add onPointerDown to IonTabButton in React. Typescript will complain, but the touch end handler will be properly connected/called.
Code Reproduction URL
https://stackblitz.com/edit/wl7fhb-xaawyq?file=src%2Fmain.tsx
Ionic Info
N/A - stackblitz
Additional Information
No response
Thank you for submitting the issue!
I was able to replicate it. I verified that onClick doesn't cause any type errors. I would recommend using that as a workaround.
Thanks for the issue! This has been resolved via PR https://github.com/ionic-team/ionic-framework/pull/29736 and will be available in an upcoming release of Ionic.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.