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

Tag list more/less toggle link jumps to the top of the page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2
    • Fix Version/s: 3.1.3
    • Component/s: Tags
    • Labels:

      Description

      Only certain maximum amount of tags (10 by default) is displayed via the taglist.mustache template followed by the link "more ..." which is supposed to toggle full display mode.

      The link is generated as <a href="#" class="tagmorelink">more ...</a>

      Some browsers (such as my Chrome 52.0.2743.82) jump to the top of the page when they are supposed to follow the # anchor href. When links are used for JS purposes like this, they should prevent the default link behavour.

      Steps to reproduce

      1. Edit your profile and fill the description long enough so that the "user details" block will appear outside the screen (hint: http://www.lipsum.com/).
      2. Provide more than 10 interests tags in your profile.
      3. Use the more/less toggle widget at your profile display page.

      Expected behaviour: The page should not scroll to the top.

      Current buggy bevaiour: The page scrolls up to the top.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16