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

DatePicker disabled by default when date-input-field is empty

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Site Interface
    • None

      Problem:
      DatePicker (Example: Author-Date of birth, Date of death) is disabled by default during entity creation (when date-input is empty).

      Cause:

       src/client/entity-editor/common/new-date-field.js
      

      empty year value evaluates to '0' for isCommonEraDate value, making 'disabled=true' , for both negative and empty years.

      Fix:
      You need to modify the isCommonEraDate value checking, so that it evaluates to 'true' for both '1' & '0' ( currently it's only checking for value '1' ).

            voloshinskii Maxim Voloshinskii
            sbvkrishna sbvkrishna
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package