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: On move layer #5355

Closed
2 tasks done
andcmatias opened this issue Sep 1, 2023 · 0 comments
Closed
2 tasks done

BUG: On move layer #5355

andcmatias opened this issue Sep 1, 2023 · 0 comments
Labels

Comments

@andcmatias
Copy link

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome 116

Reproducible demo link

https://grapesjs.com/demo.html

Describe the bug

How to reproduce the bug?

  1. Open the layer manager and try to move the component
  2. It will disable the component and show the errors in the console.
  3. Uncaught TypeError: Cannot read properties of undefined (reading 'Canvas')
    at o.selectTargetModel (Sorter.ts:500:27)
    at o.onMove (Sorter.ts:545:10)
    at _e (_executeBound.js:8:65)
    at HTMLDivElement. (bind.js:10:12)
    at HTMLDivElement. (restArguments.js:16:27)
    Sorter.ts:1253 Uncaught TypeError: Cannot read properties of undefined (reading 'method')
    at o.move (Sorter.ts:1253:23)
    at o.endMove (Sorter.ts:1177:25)
    at _e (_executeBound.js:8:65)
    at HTMLDocument. (bind.js:10:12)
    at HTMLDocument. (restArguments.js:16:27)

What is the expected behavior?
...That move the position component

What is the current behavior?
...When trying to move the component through the Layer Manager

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
@artf artf added the bug label Sep 9, 2023
@artf artf closed this as completed in 9527e6c Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants