Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-16140

Date input is always set to today when the fields are nullable

    Details

    • Branch Version/s:
      6.0.x

      Description

      Add an input date like this:
      <liferay-ui:input-date
      monthParam="month"
      monthValue="0"
      monthNullable="<%= true %>"
      dayParam="day"
      dayValue="0"
      dayNullable="<%= true %>"
      yearParam="year"
      yearValue="0"
      yearNullable="<%= true %>"
      yearRangeStart="<%= 2000 %>"
      yearRangeEnd="<%= 2050 %>"
      />

      The date always sets the fields values to today's values when the field is 0 when you hover over the date input.

      If you set dayValue to 5, then it does not change.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nathan.cavanaugh Nate Cavanaugh
              Reporter:
              amos.fong Amos Fong
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 27 weeks, 4 days ago

                  Packages

                  Version Package
                  6.0.12 EE
                  6.1.0 CE RC1