onBlur / onFocus usage with useDateField #4292
Unanswered
jake-chapman-mark43
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I think |
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
We have someone using our DateInput and DateRate which uses the associated spectrum hooks. Spreading
{...fieldProps}
ontoDateField
which is passing all props into appropriate hooks. We've noticed that majority of default event handlers likeonBlur
onFocus
etc all get stripped. At first I thought it was a prop spreading issue. But after some logical thinking and working on it I realized it kind of made sense since there are no "text inputs" per say, but we do have editable segments that do receiveonFocus
andonBlur
events. I can add these manually to<segment>
but they are fired off for each individual segment of the component being showed based on props.They're needing to save the value to the database when the user has selected a date, what's an appropriate way to handle
onBlur
for something like DateInput/DateRange since there isn't a 'single' event for those but will be firing off multiple times?Beta Was this translation helpful? Give feedback.
All reactions