primitives(Flex): Event handlers for Flex as="form"
are not typed properly
#2891
Closed
4 tasks done
Labels
bug
Something isn't working
React
An issue or a feature-request for React platform
TypeScript
An issue associated with TypeScript
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Other
How is your app built?
CRA (TS)
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Please describe your bug.
onSubmit
handler isn' typed properly onFlex as="form"
element.Its
onSubmit
is typed asFormEventHandler<HTMLDivElement>
, whereas it should beFormEventHandler<HTMLFormElement>
.What's the expected behaviour?
(see above)
Help us reproduce the bug!
https://codesandbox.io/s/recursing-bird-eewc0q?file=/src/App.tsx
Code Snippet
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: