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

Drag'n'drop topic reorder looks like it works but actually fails if you drag onto Topic 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: Course, JavaScript
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      If you try to drag a topic to the first position it sometimes fails to work, even though it looks like it has worked (i.e. the topic switch places), when you do anything else (e.g. turn off editing) you find the topic is back in the place it began.

      You can tell if it has worked because the little spinner icon appears as it is working. When it's only pretending to work, you don't get this. (If you've got developer tools in your browser then you can see the REST call being fired as well when it's working properly).

      This seems to have something to do with the drag target. If you go onto Topic 0, then you get feedback as if dropping would succeed, and when you release it looks like it has worked. The workaround is to drop it lower down the screen.

      I've tested and seen this behaviour in Firefox, Chrome, IE8 and Safari (though Safari might have other issues, it seemed the least consistent).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dobedobedoh Andrew Nicols
                Reporter:
                bawjaws David Scotson
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Jake Dallimore, Jun Pataleta
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: