GrapesJS/grapesjs

BUG: Layer manager breaks when alternating between pages

thigh opened this issue · 0 comments

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

MS Edge 126.0.2592.87 (Official build) (arm64)

Reproducible demo link

n/a

Describe the bug

How to reproduce the bug?

  1. ...Using versions 0.21.11 or 0.21.12 of grapesjs, create a multi-page project. While on page A the Layer manager works as expected. Switching to page B likewise works as expected.
  2. ...Switching back to page A will cause the Layer manager to stop responding and render it useless. Actually, switching to any previously loaded page causes this problem but switching to any page for the first time works as expected.
  3. Switching back to v0.21.10 resolves the problem

What is the expected behavior?
...The layer panager should reflect the components for the currently loaded page and allow interaction.

What is the current behavior?
...Layer manager stops responding and any attempts to interact with the currently displayed items fail to work (e.g. clicking on the expansion button for a component does nothing). The only way to get layer manager to work again is to load a page that hasn't already been loaded (e.g. page C). However, leaving this page and loading it again later will cause the same issue for page C.

Thank you for the excellent framework by the way!

If is necessary to execute some code in order to reproduce the bug, paste it here below:

// your code here

Code of Conduct

  • I agree to follow this project's Code of Conduct