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

pendingPromise in form-autocomplete is inside out

    XMLWordPrintable

Details

    Description

      In the blur event for form-autocomplete we create a pendingPromise to ensure that behat does not move on to a next step.
      However we are then adding .then conditions to that promise.

      Unfortunately that means that we complete the M.util.js_complete before we actually select the item or close the list.

      It's not a major bug, but it could theoretically cause some random failures and we should fix it.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Shamim Rezaie Shamim Rezaie
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Sep/19

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 55 minutes
                  1h 55m