Skip to content

Custom DateRangePicker Dropdown is not working as expected. #275

Answered by mitrotasios
gokulkrishh asked this question in Q&A
Discussion options

You must be logged in to vote

hey @gokulkrishh, sorry if this is not clear but the dropdown is meant to be used for relative date ranges. Meaning that you provide a startDate in your options as you did, and the DateRangePicker will set the state to that provided startDate and use today's date as an endDate when that relative dropdown option is selected. We are considering adding an endDate property to the options as well, so that you have full control basically. Let me know what you think and if you have any other questions :)

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gokulkrishh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mitrotasios
Comment options

@gokulkrishh
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants