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

Filepicker - No valid focus target found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2, 3.2.1, 3.2.2, 3.2.3
    • Fix Version/s: None
    • Component/s: Accessibility, Filepicker
    • Labels:
    • Testing Instructions:
      Hide

       

      Show
       
    • Affected Branches:
      MOODLE_32_STABLE

      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

              • Assignee:
                Unassigned
                Reporter:
                Trolli Olivier Piton
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: