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
Uh oh!
There was an error while loading. Please reload this page.
-
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
todate is selected.I attach my current implementation, i assume i would need to call setIsPopoverOpen(false) inside the onSelect prop conditionally when
field.value.tois truthy but when trying thatfield.onChangedoes not send the value to the controlled form field, maybe im missing something on how the selected value can be passed tofield.onChangeThanks!
Beta Was this translation helpful? Give feedback.
All reactions