Component.remove() gets called on drag and on trash
Question
There is no way currently to distinguish between remove() called on component when you are dragging it. And when you pres the trash button.
This is currently a blocker for me, I am gonna fork and hack it in myself, but it would very much help if this feature was available.
Answers (3)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1587
How to distinguish events for custom components
Hi, I have an issue with events. I would like to distinguish events wwhen a component is loaded using 'fromElement' config from when it's l...
Issue #748
component:remove action
Going through the available events, I'm curious as to why there is no "component:remove" action? I've taken the approach of triggering the...
Issue #1199
[Question] : Can we remove links?
I tried to add a button to remove links but i couldn't find a way. I can add them in a text with the RTE button and edit them by double-cli...
Issue #1890
[QUESTION] Disable Drag Feature, Not Ability
I want to create my own dragging and placement abilities. I love grapesjs, but really want more control over how dragging elements work in...
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.