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

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


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.3
    • 3.1, 3.2
    • Tags

      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.

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Frédéric Massart Frédéric Massart
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Marina Glancy Marina Glancy
            0 Vote for this issue
            3 Start watching this issue


                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.