Closed metagrover closed 6 years ago
In the possible customizations support, it should be possible to change the entire top portion including the input fields.
An example from Airbnb.
Another example from Kayak.
For custom rendering, we can use onDayChange
from react-day-picker to expose the current selection and render as we please with a custom trigger to open the calendar view.
UX Issues:
When the date range is already selected, and now you modify the start date such that (end date - start date > 1 month duration), the calendar auto-focuses on the end date.
Correct behavior: It should focus on the start date if you are changing the start date. It should focus on the end date if you are changing the end date.
Bug Report
Current behavior:
If you have an end-date selected (screenshot -
2018-02-14
), and clear the start-date, you will be able to select any date in the calendar as the start-date, even the dates after2018-02-14
.Also, if I have an end date selected, and I'm selecting the start date, the calendar should grey-out irrelevant dates (i.e. the dates after the end date)
UX issues
Support more Customization
Allow users to change the middle
-
's markup which connects two input fields together. Possible usecase: You may want to change the-
to an arrow (->
) orto
.Expected / new behavior:
Reactivesearch version: latest