Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Layer manager not refreshing on page change #5593

Closed
2 tasks done
thigh opened this issue Jan 3, 2024 · 3 comments
Closed
2 tasks done

BUG: Layer manager not refreshing on page change #5593

thigh opened this issue Jan 3, 2024 · 3 comments

Comments

@thigh
Copy link

thigh commented Jan 3, 2024

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

MS Edge 120.0.2210.91

Reproducible demo link

none available

Describe the bug

How to reproduce the bug?

  1. update to latest grapesjs version
  2. set up a multi-page project
  3. note the current layer manager hierarchy
  4. invoke the pagemanager.select(pageId) method for a different page other than the currently selected page
  5. the layer manager still reflects the hierarchy of the previous page even though the page manager shows the new page as currently active and the canvas correctly renders the newly selected page
  6. Downgrade to grapesjs v0.21.6 and repeat steps 3-5. The layer manager will correctly reflect the hierarchy of the active page each time a different page is selected

What is the expected behavior?
...Tthe layer manager should updated to reflect the active page layer hierarchy

What is the current behavior?
... The layer manager does not change despite changing the active page via the page manager select() method. The canvas updates successfully but the layer manager still shows the first pages hierarchy without updating.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@artf
Copy link
Member

artf commented Jan 10, 2024

Thanks for the report @thigh will fix it

@artf artf closed this as completed in 9a49452 Jan 10, 2024
@sunnynk19
Copy link

Hi @thigh, Looks like still not working. Have you deployed the latest npm package?

@artf
Copy link
Member

artf commented Jan 19, 2024

Not yet published, you can find here all the releases https://github.com/GrapesJS/grapesjs/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants