Date inputs don't allow partial date (only year, year-month)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Since introducing  a datepicker in the date inputs, a user cannot enter a date manually in the input. The datepicker works, but does ont allow for example to enter '1985'. Typing in the text input does not change the redux state.

      For example in this revision I tried to change End Date from 1968-10-28 to 1968

      Useful comments can be found on issue -----BB-335-----, most importantly this:

       

      "Moment is also used by the DatePicker component, but we can bypass it by using its `onChangeRaw` property: https://reactdatepicker.com/#example-46
      The function is called with the raw event, so you will need to safely get `event.target.value` in the date change handler functions that are passed to DateField wherever it is used."

            Assignee:
            Akhilesh Kumar
            Reporter:
            Monkey
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package