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]: "component:add" event triggers when components are moved #868
Comments
Thanks for the catch James, I'll fix it for the next release |
hi, thank you |
@lv-alex I planned to release for the end of this week |
thank you @artf . We will try it out |
It works. Thank you @artf |
Is this anywhere in the new documentation? I can't seem to find any reference to |
@japo32 all available public events are documented here: https://grapesjs.com/docs/api/editor.html#available-events |
Any update on this issue? It still calls component:add event when I simply move a component around. |
It also triggers component:add when selecting different components. |
Taken from https://github.com/artf/grapesjs/wiki/API-Editor
My understanding is that the component:add should only be called when the block is dragged in from the blocks panel and dropped into the editor. I don't think this should happen when a block is moved around the editor (that's what component:update is for...)
Reproduce
Great project btw. 👍
The text was updated successfully, but these errors were encountered: