Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51919

AutoComplete hides prematurely

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: Forms Library
    • Labels:
    • Testing Instructions:
      Hide
      1. Check out this commit for testing this fix https://github.com/ryanwyllie/moodle/commit/dcece3952d155c6926e33689551e6d9710dcbd9d
      2. Open test.php file.
      3. Place the cursor in the "Tags" field.
      4. Tab onto the next field.
      5. Immediately tab back.
      6. Press the down key (within 500 msecs of tabbing away in the first place).
      7. The suggestions list should be opened. It should not shortly disappear.
      Show
      Check out this commit for testing this fix https://github.com/ryanwyllie/moodle/commit/dcece3952d155c6926e33689551e6d9710dcbd9d Open test.php file. Place the cursor in the "Tags" field. Tab onto the next field. Immediately tab back. Press the down key (within 500 msecs of tabbing away in the first place). The suggestions list should be opened. It should not shortly disappear.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-51919-master

      Description

      1. Open test.php file
      2. Place the cursor in the "Tags" field
      3. Tab onto the next field
      4. Immediately tab back
      5. Press the down key (within 500 msecs of tabbing away in the frist place)
      Expected behaviour

      The suggestions list is opened

      Actual behaviour

      The suggestions list opens, but is closed almost immediately

      Proposed solution:

      In addNavigation, in the 'blur focus' handler, check whether the suggestions list is currently open.
      This should take place before any of the timer cancellation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              cameron1729
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                16/Nov/15