[Bug]: After custom component is deleted the Trait's view does not clear out
Question
Hi,
I'm using the grapesjs library version 0.14.33.
I've created some custom components and I've noticed that on deleting the components the Traits panel does not clear out. For instance when the canvas loads and no component is selected, the Traits panel does not display any traits. The traits are displayed only after a component is selected. I would like the Traits panel to go back to the state where no component is selected as soon as a component is deleted.
Browser Used for Testing : Chrome v 69.0.3497.100
Actual Behavior : Once the component is deleted, the traits continue to be displayed for the deleted component.
Expected Behavior : Once the component is deleted, the traits controls should be hidden/removed from the traits panel, similar to the state the traits panel is when the application first loads and no component is selected.
JS Fiddle link to reproduce the issue : https://jsfiddle.net/g3zh12r7/1/
Thanks
Answers (2)
Ok thanks for the report. I'll fix that in the next release
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 #1658
[BUG] Checkbox trait does not load as checked even when the trait value is true
Hi, I'm using Grapesjs version 0.14.33. I'm loading some components when the form loads and I have a component with a checkbox trait. When...
Issue #486
Custom Component not editable and also after traits update canvas does not update
below is code i used for traits and custom section but after adding component via block, cannot edit text or trait update does not update c...
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...
Issue #460
When the component's view modifies the HTML, text components are no longer editable
I'm trying to build a custom component that contains some lorem ipsum text in the content, for editing once it's on the canvas. But I also...
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.