Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-146

Javascript links are being followed after preventDefault() in Preview mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Major
    • None
    • 5.5.2, 5.5.3, 5.5.4, 5.5.5, 5.5.6
    • None
    • Pages Maintenance 4
    • 2

    Description

      We have noted that in the classic Preview Mode, there is javascript in the widgetset.js that is activating links after clicks. Unfortunately this javascript is not paying attention when I have already called event.preventDefault() on those links.

      For example, we have an accordion content type, and headers have links in them for expanding and contracting. event.preventDefault() is called to prevent the browser from following the link (in this case href="#") and scrolling the page to the top.

      This works fine in "Preview-in-a-new-window" mode, but does not work in classic Preview mode.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                nwing Nickolaus Wing
                Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD