Parent reference in block:drag
Question
I wonder if it is possible to get the parent and/or index during block:drag event for the resulting component, similar to the parent attribute in the component:drag event? It seems like the event argument passed does not contain any reference to parent. The reason I am asking is that I am working on a solution to preview the presumed drop result of a dragged block, using a box rather than the green line indicating the drop position.
Answers (1)
block:drag can't contain the reference to the component as it's not yet created before being dropped
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1951
[QUESTIONS] change or add event on add component from block
is it possible ?, change the drag and drop event to on click when adding a new component, I want to add components by clicking the block th...
Issue #1813
[Question]: Can't get correct component from editor.on events callback
I am using editor's events to get component after some action like component:add, block:drag:stop, but in both events I can't get my compon...
Issue #1709
[QUESTION] Is it possible to affect child component's styling through parent component's style manager?
Hello there! Awesome project and thanks for your contribution. I would like to know if it is possible to change the styling of a child comp...
Issue #2647
Drag placeholder does not calculate the correct width.
HI @artf, I hope you are having a nice day. There's a small issue with the drag placeholder when a block is being dragged into a possible c...
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.