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

Filepicker - No valid focus target found

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 3.2, 3.2.1, 3.2.2, 3.2.3
    • None
    • Accessibility, Filepicker
    • MOODLE_32_STABLE
    • Hide

       

      Show
       

    Description

      Hello,

      When a user accesses to the filepicker and then closes it, the focus is not set on the button that opened the dialog.
      The console log said "moodle-core-widget-focusafterhide: No valid focus target found - not returning focus."

      Is it possible to fix it ?

      How can I patch it by myself while waiting for a better solution ?

      Thank's

       
      Steps to reproduce:

      • Create a new Assignment module
      • Using the keyboard to tab through the form, enter a title, then open the file manager and select a file.
      • Tab to "Upload this file" button and press enter.
      • Expected: The file manager is closed, and focus returns to the button that opened it.
      • Actual: The file manager is closed, and focus is moved to the top of the page.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Trolli Olivier Piton
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: