Issue #2798Opened May 24, 2020by niklasdahlback0 reactions

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)

artfJune 12, 20200 reactions

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.

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.