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

Autocomplete suggestions list closes on scroll (in modal dialogues only)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Log in as admin
      2. Go to home page, and then click on the cog icon > more> question bank > questions
      3. Create 2 true/false questions (q1 & q2)
      4. Click on the tag icon next to q1 and 20 tags (t1, t2, ..., t20) to the question

      Test

      (Test in Boost, Classic, Clean, and with all supported browsers)

      1. Click on the tag icon next to q2
      2. Click on the triangle icon of the tag field
      3. Verify that you see t1 ... t20 as suggestions
      4. Verify that you can scroll the suggestions list. Try click and drag the scrollbar and also clicking on the up/down arrows of the scrollbar
      5. Verify that you can add tags by selecting them from the suggestions list
      6. Click on one of the tags in the suggestions box by holding the mouse key down for more than 2 seconds and then releasing the mouse key.
      7. Verify that the item you clicked on is added to the tags selection
      Show
      Setup Log in as admin Go to home page, and then click on the cog icon > more> question bank > questions Create 2 true/false questions (q1 & q2) Click on the tag icon next to q1 and 20 tags (t1, t2, ..., t20) to the question Test (Test in Boost, Classic, Clean, and with all supported browsers) Click on the tag icon next to q2 Click on the triangle icon of the tag field Verify that you see t1 ... t20 as suggestions Verify that you can scroll the suggestions list. Try click and drag the scrollbar and also clicking on the up/down arrows of the scrollbar Verify that you can add tags by selecting them from the suggestions list Click on one of the tags in the suggestions box by holding the mouse key down for more than 2 seconds and then releasing the mouse key. Verify that the item you clicked on is added to the tags selection
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-63198-master

      Description

      Possibly related to MDL-58669 but this seems to affect all browsers (or at least Chrome and Firefox), but apparently only for autocomplete elements in a modal dialogue (e.g. Course -> Participants -> Enrol users in Moodle 3.5).

      To reproduce, go to the new combined participants / enrolled users page for any course, click the 'Enrol users' button and then the down arrow in the 'Select users' search input to activate the suggestions list. Assuming you have enough users the list will be scrollable. Try to grab hold of the scrollbar and drag it. This removes the focus from the search input and after half a second the list will close (scrolling still works fine using other methods, e.g. a scroll wheel).

      The same behaviour also occurs if you mousedown on one of the list options for more than half a second.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 7 hours, 20 minutes
                  2d 7h 20m