Issue #3033πŸ’¬ AnsweredOpened September 20, 2020by krishnaeverestengineering0 reactions

While Dragging component to top, removed event is not triggered for another component

Quick answerby artf

This is correct behavior, the event is triggered only on updated/moved component otherwise all children would emit events (which is definitely not what we want). You can also try to see if setting the listener on the parent might help you in your case

Read full answer below ↓

Question

<img width="949" alt="Screenshot 2020-09-20 at 10 12 52 AM" src="https://user-images.githubusercontent.com/55732888/93694492-ee644100-fb29-11ea-8854-be8d6c7198e3.png">

I moved selected component to top (see in image). So removed/onrender callback triggered for the moved component. But callback is not triggered for below component which is at index 1. Is that a bug or expected behaviour? if it is expected, how can we call removed or something to know its changed its position?

Answers (1)

artfβ€’ October 1, 2020

This is correct behavior, the event is triggered only on updated/moved component otherwise all children would emit events (which is definitely not what we want). You can also try to see if setting the listener on the parent might help you in your case

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.