Does headless UI components have an onBlur prop passed? #2332
Unanswered
sandhana14
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used headless UI components to build my own UI components library and then I used those components to build my project. My current requirement is, I have to implement a functionality based on the form fields when it loses its focus. For that I need to use the
touchedFields
method ofreact hook form
in order to know whether the form fields are touched or not. To make it work in the custom components, I need to pass onBlur event to the components. When the onBlur event gets fired, react hook form will register the input as touched. So I tried to pass an onBlur event to the components created using headless ui, it seems like not working as expected. So then I checked the headless UI documentations for onBlur prop. It looks like the components does not have any onBlur prop passed. But I am not completely sure. Kindly let me know, if the components have the onBlur prop passed. Thanks in advance.Beta Was this translation helpful? Give feedback.
All reactions