Issue #3081✓ SolvedOpened October 19, 2020by maryia-kabash3 reactions

Style Manager setTarget does not work

Quick answerby artf2

Thanks @maryia-kabash found the issue, will be fixed in the next release!

Read full answer below ↓

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)

👍 Most helpfulartfNovember 16, 2020

Thanks @maryia-kabash found the issue, will be fixed in the next release!

maryia-kabashNovember 9, 2020

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?

artfOctober 23, 2020

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.

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.