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

Date disappears from input textbox when choosing the minimumDate from the DatePicker

    Details

      Description

      Steps to reproduce:
      1. Copy the following text into an .html file:

      <html>
      	<head>
      		<script src="http://cdn.alloyui.com/2.0.0/aui/aui-min.js"></script>
      		<link href="http://cdn.alloyui.com/2.0.0/aui-css/css/bootstrap.min.css" rel="stylesheet"></link>
      	</head>
      	<body>
      		<br />
      		<input id="input" type="text" />
      		<script type="text/javascript">
      			// <![CDATA[
      			YUI().use('aui-datepicker', function(A) {
      				var datePicker = new A.DatePicker({
      	
      					popover : {
      						zIndex : 1000
      					},
      					calendar : {
      						minimumDate : new Date(2014, 0, 1),
      						maximumDate : new Date(2014, 2, 1)
      					},
      					trigger : "#input"
      				});
      			});
      			// ]]>
      		</script>
      	</body>
      </html>
      

      2. Click into the input textbox.
      3. After the datePicker pops up, select the minimum date of January 1st in 2014.
      4. Click into the input textbox again.
      If the bug still exists, the date will disappear from the textbox. Note that when repeating these steps for any other date (including the maximum date), the date will stay in the textbox when the user clicks in it a second time.

        Attachments

        1. Fixed62.gif
          Fixed62.gif
          8.39 MB
        2. FixedM.gif
          FixedM.gif
          106 kB
        3. Reproduced.gif
          Reproduced.gif
          154 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 11 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 Alpha 1