BUG: "component:update" does not trigger when components are moved
Question
Taken from https://github.com/artf/grapesjs/blob/dev/src/editor/index.js#L33
component:update- Triggered when a component is updated (moved, styled, etc.), the model is passed as an argument to the callback
reproduce the bug
- use
moveAPI to move component - click arrow up/arrow down button
- https://codesandbox.io/s/charming-mendel-ivrlz?file=/index.html


editor.on("component:update", () => {
console.log("click arrow up/arrow down button");
console.log("expected behavior: Triggered when a component is moved.");
});
expected behavior
component:update - Triggered when a component is moved
current behavior
component:update - Trigger is not working when a component is moved
Version:
- 0.16.34
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #868
[BUG]: "component:add" event triggers when components are moved
Taken from https://github.com/artf/grapesjs/wiki/API-Editorcomponent:add - Triggered when a new component is added to the editor, the model...
Issue #4735
BUG: resetId types mismatch
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? n/a Reproducible demo link n/a Describe th...
Issue #1341
[Question] How to work with Custom Components
Hello, I have some questions and issues about and with the grapes editorProblem 1 In a component, which class is there extended? Is it real...
Issue #3939
BUG: Disabled drag and drop in preview
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? v95Reproducible demo link https://codesandbo...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.