Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1613

DatePicker does not set value of trigger when date selected while picker is partially out of view

    Details

      Description

      Steps to reproduce:
      1. Create the following .html file and go to the page in Chrome or Firefox:

      <html>
              <head>
                      <script src="http://cdn.alloyui.com/2.5.0/aui/aui-min.js"></script>
                      <link href="http://cdn.alloyui.com/2.5.0/aui-css/css/bootstrap.min.css" rel="stylesheet"></link>
              </head>
              <body>
              <div style="top: 750px; left: 500px; position: absolute;">
                      <input id="trigger" />
              </div>
              <div style="top: 2000px; left: 500px; position: absolute;">
                      <input />
              </div>
              <script>
                      YUI().use('aui-datepicker', function(Y){
                              var datePicker = new Y.DatePicker({
                                      trigger: '#trigger'
                              });
                      });
              </script>
              </body>
      </html>

      2. Click inside the first <input> to pop up the datePicker.
      3. Scroll down so that the picker is partially obscured like in this image:

      4. Select a date.

      The expected behavior is that the pickDate will disappear, and the <input> will contain the selected date.

      Instead in Firefox, selecting a date causes the datePicker to reappear below the <input>. In Chrome the datePicker will reappear below the <input> for a moment and disappear afterwards. In both cases the input will not contain the text of the selected date.

        Attachments

          Activity

            People

            Assignee:
            eduardo.lundgren Eduardo Lundgren (Inactive)
            Reporter:
            kyle.stiemann Kyle Stiemann (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                master
                master-deprecated
                3.0.x
                3.1.x