Trigger function when range end (to value) is selected #2051
Replies: 1 comment
-
Okay so i have found the solution to this, leaving it incase anybody needs it:
Basically the necesary data that has to be passed can be retrieved on the anonymous function. Felt very silly when noticing! |
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
-
Im currently using the component with the Shadcn implementation which contains it inside a popover, i would like for the popover to be closed once the
to
date is selected.I attach my current implementation, i assume i would need to call setIsPopoverOpen(false) inside the onSelect prop conditionally when
field.value.to
is truthy but when trying thatfield.onChange
does not send the value to the controlled form field, maybe im missing something on how the selected value can be passed tofield.onChange
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions