Issue #1814Opened February 19, 2019by ateebahmed0 reactions

[Question]: How to fire event which triggers component:selected with my component

Question

I want to select my component whenever it is dragged from blocks to canvas and rendered, I have tried with registering events on component:add, component:mount and calling editor.select(component), passing the component I get from callback, but it is not properly initialize or has properties missing, like its type is not what I expect for my component to be and its custom trait is not initialized when called through this way, but if I select the same component by clicking, the component I get in component:selected is what I expect and its trait is also rendered correctly.

What am I doing wrong?

Answers (2)

lock[bot]February 22, 20200 reactions

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.

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.