• Resolved christer_f

    (@christer_f)


    In the template I use for a PA Modal box I have inserted menu anchors and elements that scroll to these anchors. Things work fine with the template (both in editing and view mode), but not on the page where the template is used in a PA Modal. When clicking the element with the href to the anchor in the modal it is the background page that scrolls (more or less randomly) and not the modal.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @christer_f,
    I’m so sorry, but unfortunately anchors can’t work inside modal box and popups. Anchors elements must be visible when the page loads so their scroll offsets is calculated correctly. Also, the anchors by default scrolls to elements relatively to the browser window, not another window (the modal box in our case)
    This doesn’t happen with elements as modal boxes and popups.
    Regards

    Thread Starter christer_f

    (@christer_f)

    Hi leap13support,
    Yes and no. This may be true as a default behaviour. With a few lines of javascript I fixed it so that anchors now work inside the modal.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Scroll to anchor in PA Modal’ is closed to new replies.