Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-302

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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."

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package