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

Quick switching between selectors throws exception

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-77451-401
    • MDL-77451-402
    • MDL-77451-master
    • Hide
      1. Create a course and enrol a few users in it.
      2. Go into the course and click on the "reports" from the primary navigation.
      3. Go to the "Users report" (from the secondary navigation menu)
      4. Open the browser's console
      5. Execute the following statement in the console
        • setInterval(function() {
              document.querySelector('div[aria-label="Select a user"]').click();
          }, 5);

      6. Verify that you see a drop-down constantly appearing and disappearing
      7. Wait for about 10 seconds and verify that no warning is shown on the page

       

      Show
      Create a course and enrol a few users in it. Go into the course and click on the "reports" from the primary navigation. Go to the "Users report" (from the secondary navigation menu) Open the browser's console Execute the following statement in the console setInterval(function() {     document.querySelector( 'div[aria-label="Select a user"]' ).click(); }, 5 ); Verify that you see a drop-down constantly appearing and disappearing Wait for about 10 seconds and verify that no warning is shown on the page  
    • 4
    • Team Alpha - Planning sprint

    Description

      If I switch quickly between select group/Select report dropdowns quickly sometimes I have this

      TypeError
      Cannot read properties of null (reading 'focus')
      File:
      Line:
      Stack trace:
      TypeError: Cannot read properties of null (reading 'focus')
          at registerListenerEvents (http://localhost/m/stable_master/lib/requirejs.php/-1/core_grades/searchwidget/basewidget.js:8:1261)
          at http://localhost/m/stable_master/lib/requirejs.php/-1/core_grades/searchwidget/basewidget.js:8:897
      

      Attachments

        Issue Links

          Activity

            People

              rezaie9 Shamim Rezaie
              ilyatregubov Ilya Tregubov
              Mihail Geshoski Mihail Geshoski
              Andrew Lyons Andrew Lyons
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 32 minutes Time Not Required
                  5h 32m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.