🐛 Bug Report
I do not know if this is intentional or not, but I think there is an issue with the useTextField hook in react-aria.
All event handlers returned are set to undefined when not defined except onBlur which is returned as null.
At first, it does not seem worrying, but when it comes to mergeProps things become a little more spicy.
In fact, when you try to merge props coming from react-aria with props coming for on another library (react-number-format in my case) then mergeProps results in onBlur defined as null so when activated, it prompts an error in console.
onBlur is not a function
I do not know if it is a constraint in the library code but it would be great if onBlur was returned as undefined. Plus it makes more sense considering all other handlers work like that.
💻 Code Sample
https://codesandbox.io/s/condescending-parm-s6wufv?file=/src/App.tsx
🌍 Your Environment
MacOs
React 18.2
With and without Vite 4.0.1
🐛 Bug Report
I do not know if this is intentional or not, but I think there is an issue with the
useTextFieldhook inreact-aria.All event handlers returned are set to
undefinedwhen not defined exceptonBlurwhich is returned asnull.At first, it does not seem worrying, but when it comes to
mergePropsthings become a little more spicy.In fact, when you try to merge props coming from
react-ariawith props coming for on another library (react-number-formatin my case) thenmergePropsresults inonBlurdefined asnullso when activated, it prompts an error in console.onBlur is not a functionI do not know if it is a constraint in the library code but it would be great if
onBlurwas returned asundefined. Plus it makes more sense considering all other handlers work like that.💻 Code Sample
https://codesandbox.io/s/condescending-parm-s6wufv?file=/src/App.tsx
🌍 Your Environment
MacOs
React 18.2
With and without Vite 4.0.1