react-datetime-picker icon indicating copy to clipboard operation
react-datetime-picker copied to clipboard

Calendar does not update when using inputs and a date is not set

Open piotrjanosz opened this issue 4 years ago • 1 comments
trafficstars

Hi Wojtek, thank you for the wonderful library.

I was wondering if it was possible to update the calendar view when user types only a part of a date (for example, just a year). It seems that currently it is only possible to make the calendar jump to a date when both date and time are set.

We display year and month first on the project I am working on and I think it would help the user find the correct date faster.

Steps to reproduce:

  1. Visit project's website
  2. Change day, month, or year - notice the calendar gets updated.
  3. Clear date and time by clicking on the clear button.
  4. Set month or year - notice calendar does not get updated (for example, does not jump to the year that was typed in)

Current behavior: calendar view only gets updated when typing if date and time are first set. Desired behavior: update calendar view whenever user types part of a date (for example, only the year is set).

piotrjanosz avatar Jun 10 '21 14:06 piotrjanosz

Hello Wojtek

I am wondering the same thing - how can we make calendar update on input? Even after completing manual entry of date, and displaying the new date in the field, when clicking to expose the calendar, it's not updating. Is this expected behavior? How can we overcome this?

Thanks much, Michael

michaelholm avatar Jul 23 '21 13:07 michaelholm

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Nov 21 '22 01:11 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Dec 12 '22 01:12 github-actions[bot]

@wojtekmaj Reopening, I'm experiencing the same issue, manually typing into the date picker when there's no date selected (--/--/----) and then clicking on the clear button doesn't clear the fields.

SaintPepsi avatar Mar 29 '23 03:03 SaintPepsi