Issue #3191Opened December 18, 2020by echobinod1 reactions

How to identify which block is dragged into canvas ?

Question

I want to add the small if condition like: if (block1 is dragged) { //show modal }

Answers (1)

artfDecember 23, 20201 reactions

You can use the block:drag:stop event

editor.on('block:drag:stop', (component, block) => {
// ...
})

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.