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

Form validation does not focus on HTML Editors

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Replication Instructions

      • Open a course
      • Turn Editing On
      • Add a new resource (I used a Page)
      • Scroll to the bottom of the screen and select one of the save options
      • Notice that focus is changed back to the 'Name' textbox
      • Fill in the 'Name' field only
      • Scroll to the bottom of the screen and select one of the save options

      Expected Result

      When clicking save the first time, focus is changed to the 'Name' textbox
      When clicking save the second time, focus is changed to the 'Description' HTML Editor

      Actual Result

      When clicking save the first time, focus is changed to the 'Name' textbox
      When clicking save the second time, focus is not changed to the 'Description' HTML Editor

      Show
      Replication Instructions Open a course Turn Editing On Add a new resource (I used a Page) Scroll to the bottom of the screen and select one of the save options Notice that focus is changed back to the 'Name' textbox Fill in the 'Name' field only Scroll to the bottom of the screen and select one of the save options Expected Result When clicking save the first time, focus is changed to the 'Name' textbox When clicking save the second time, focus is changed to the 'Description' HTML Editor Actual Result When clicking save the first time, focus is changed to the 'Name' textbox When clicking save the second time, focus is not changed to the 'Description' HTML Editor
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-31016-master-2

      Description

      During Clientside JavaScript form validation, if an HTML Editor is empty (or fails validation in some other fashion) then focus is not set correctly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dobedobedoh Andrew Nicols
                Reporter:
                dobedobedoh Andrew Nicols
                Peer reviewer:
                Rajesh Taneja
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Barbara Ramiro, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: