Trait view doesn't update input element when target value changes
Question
If the target value (i.e. Component attribute/prop) is set manually and not via the trait input element, the input doesn't reflect that change.
Sorry for all the issues--I'm willing to work on this if you want any help.
Answers (3)
Refactored TraitView for such functionality, will be added in the next release. Thanks
Sorry for all the issues
Reporting bugs it's already an aid :)
Calling of
selected.sm.trigger('change:selectedComponent')
updates trait input elements with new values of selected component.
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.
Issue #1198
QUESTIONS : Find element in Model
I have custom component and it render below html, I want to update value of h4 tilte and other element on trait changed, but not sure how c...
Issue #639
Re-render Component on Canvas when tagName has changed
I'm trying to build a basic Header component that lets you select H1 to H6 with a trait. But when an option is selected, the canvas doesn't...
Issue #1930
[QUESTIONS] change 2 attributes with 1 trait
I have an input trait, I want to change the 2 attributes (name and type) on the selected input element, on canvas is appropriate, but in th...
Issue #1227
Re-render view in editor's canvas whenever Trait value changes
Is there any possible way in grapesjs that whenever a user changes the value of a Trait of a custom component the render function should li...
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.