Issue #2000Opened May 6, 2019by DylanSp1 reactions

[Question]: What event is fired when a component's Id is changed?

Question

I'd like to trigger some behavior when a component's Id is changed in the Settings panel. I've tried editor.on() with the following events:

  • component:update:id
  • component:update:Id
  • component:update:{id}
  • component:update:{Id}

following the documentation here for component:update:propertyName, but none of them trigger the callback (() => console.log("Testing")). What event should I listen to with editor.on()?

Answers (2)

DylanSpMay 6, 20191 reactions

After some experimentation and looking through the source, component:update:attributes is what's fired.

lock[bot]May 6, 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.