GrapesJS / GrapesJS/grapesjs

BUG: cannot drag and drop elements in layerManager after change the root

Open
#6,589 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
26.2k
Forks
4.6k
Avg merge
2d 21h
Merged PRs (30d)
6

Description

### GrapesJS version

- [x] I confirm to use the latest version of GrapesJS

### What browser are you using?

google chrome v139.0.7258.128

### Reproducible demo link

https://codesandbox.io/p/sandbox/relaxed-payne-vt3pgc

### Describe the bug

**How to reproduce the bug?**
1. add some elements to the canvas
2. try to find elements in layer manager and drag or move them

**What is the expected behavior?**
it was working perfectly in version 0.20.2

**What is the current behavior?**
cannot change the root of the layer manager tree ==> only the body
I tried all the methods and nothing works

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

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.