BUG: Style Manager setTarget does not work
Question
Version: 0.16.22
What is the expected behavior? setTarget allows styling a CSS rule different from the selected component
Describe the bug Upon calling setTarget method Style Manager still has a selected component as styling target
What is the current behavior? setTarget doesn't update this.propTarget.model (updates this.propTarget.targets instead). Please compare the file style_manager\view\SectorsView.js:
Version 0.14.62 https://prnt.sc/v28tc2
Version 0.16.22 https://prnt.sc/v28ttv
Answers (3)
Thanks @maryia-kabash found the issue, will be fixed in the next release!
Hello @artf ! I have a question regarding this fix - setTarget now updates classes in Class section correctly, but Style Manager doesn't reflect the actual styles. Please see - https://prnt.sc/vfzuvv Maybe these is an event that can be triggered to update the values in Style Manager?
Thanks for the report and the suggestion Maryia. The fix will be available in the next release (I hope to publish it tomorrow)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4310
BUG: Style Manager is inaccurate when using combined CSS selectors which contains "bout" and componentFirst = true
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 100 Reproducible demo link https://...
Issue #3508
BUG: Layer visibility does not work properly
Version: 0.17.4 How to reproduceSwitch to tablet or mobile modeHide the selected component by toggling the visibility icon of LayerSwitch t...
Issue #3134
BUG: Canvas scroll to top of the page when I try to drag an element from the last sections
Version: 0.16.27 Are you able to reproduce the bug from the demo? [ X] Yes [ ] No What is the expected behavior? When a try to drag a compo...
Issue #2800
[Bug] when removing a tooltip its css is not removed
DescriptionThe bug is reproduced on the current demo Expected behavior When a tooltip is removed its css is removed What happens instead ?...
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.