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

Tooltip/Help icon stop working after closing using escape key.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.3, 3.8
    • Fix Version/s: 3.7.4, 3.8.1
    • Component/s: JavaScript
    • Labels:

      Description

      Step to reproduce:

      1. Go to any page that having help icon (e.g: Create course page).
      2. Click on help icon, help dialog will be opened.
      3. Close dialog using "Escape" key.
      4. Click on the same help icon again, now we cannot open the help dialog.

       

      Note: It's still working if we close the dialog by using tab key or click anywhere on the page.

       

      Update:

      Change the line theme/boost/amd/src/loader.js:56

      From 

      jQuery('body').on(customEvents.events.escape, '[data-toggle=popover]', function() {
          jQuery(this).popover('hide');
      });

      To

      jQuery('body').on(customEvents.events.escape, '[data-toggle=popover]', function() {
          jQuery(this).trigger('blur');
      });
      

      Seem to fix the issue, I'm checking if it causes any side effect.

        Attachments

        1. Demo.gif
          Demo.gif
          62 kB
        2. MDL-67417.jpg
          MDL-67417.jpg
          31 kB

          Activity

            People

            Assignee:
            kietlyc Kiet Ly
            Reporter:
            kietlyc Kiet Ly
            Peer reviewer:
            Andrew Nicols
            Integrator:
            Sara Arjona (@sarjona)
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Jan/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m