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

Editing or creating a new component jumps to the top of the page sometimes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.3.0, 6.2.25
    • 6.2.24
    • Editor Widget
    • None

      Steps to reproduce

      This behaviour can be reproduced on the demo page by doing the following:

      • Add a new component to the bottom of the page (scroll there first).
      • You won't be displaced to the top afterwards (until here, everything is expected).
      • Create a new element following the latest one (I was testing with HTML elements)

      Expected results

      As on the first created component, remaining on the newly created element would be the expected result.

      Actual results

      On the second created component (and subsequents) the view on the iframe is reset to being at the top of the screen.

      Additional notes

      This behavior, jumping to the top of the page, actually happens with several actions:

      • creating a second component at the bottom of the page
      • duplicate component action
      • copy and paste component  

      We should test all scenarios to ensure the behaviour is consistent for the authors 

      Workaround

      Development notes

      • A similar issue was PAGES-528, fixed in Magnolia 6.2.14. Customer also comments that this may be related to the shadow DOM and provided a small component example on the related ticket:
      <script type="module" src="https://cms-components.dev.fe.union-investment.de/test_UMAGDXC-2631-magnolia-test-web-component/union-investment-cms-components/union-investment-cms-components.esm.js">
      <ui-cms-test-component delay='5000' pixel='500'><p>Here is some Text</p></ui-cms-test-component>  
      • Test that the expected behavior is correct also with the Duplicate Component action PAGES-703
      • Test fix against SPA too 

        Acceptance criteria

              thuy.to Thuy To
              rgaona Roberto Gaona
              AuthorX
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 7d 2.25h
                    7d 2.25h