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

Change focus on Datepicker not working properly

    Details

      Description

      There are two issues detected on Datepicker related to focus:

      Issue 1: When clicking twice in an input date, focus is moved from input to calendar in the second click.
      Steps to reproduce:
      1.- Click on input date -> See how focus is set on input date and calendar popover is shown.
      2.- Click again on same input date

      Expected result
      Focus keeps on input date

      Actual result
      Focus is moved to calendar popover

      Issue 2: After deleting the value of an input date, focus is not moved to other input date after the first click. We need two clicks. Here, also related to AUI-1353, the piece of code is provoking this behaviour is here because when delete the value we call the function _afterDatePickerSelectionChange that set the focus in the current node.
      Steps to reproduce
      1.- Add to input dates to your page.
      2.- Add a date to each one.
      3.- Delete the date from the first one.
      4.- Click on the second one.

      Expected Result
      Focus is moved to second input date since is where we just clicked.

      Actual Result
      Focus remains in first input date.
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jonathan.mak Jonathan Mak
              Reporter:
              antonio.ortega Antonio Ortega
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 8 weeks, 4 days ago

                  Packages

                  Version Package
                  master
                  master-deprecated
                  3.0.x
                  3.1.x
                  3.0.3-deprecated.74
                  3.1.0-deprecated.40