@mantine/forms onBlur
callback/subscription
#6185
Closed
imsherrill
started this conversation in
Feature requests
Replies: 1 comment
-
Also curious to explore this. The way I've considered it, there should be an In any case, I think the original question is a good one. Curious to hear additional thoughts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm thinking about scalable ways to implement a submit-on-blur paradigm using Mantine. I know that I could do something like the following:
but its not particularly scalable since that'd need to be on every input within the form. I've also considering using
useEffect
with form values, but i want it to happen onBlur and not onChange. With the new api to subscribe to form value changes for uncontrolled mode, I was wondering about adding a different kind of subscription- an onBlur one.Gut things to consider- depends on input type i suppose. For most use cases this should probably trigger onBlur for text inputs but t i think as a user the expected behavior is onChange for Switches, Checkboxes, and Radio buttons.
I'm open to discussion/ helping implement a feature like this one.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions