Grapesjs: BUG: Style Manager setTarget does not work

Created on 19 Oct 2020  路  3Comments  路  Source: artf/grapesjs

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

bug

Most helpful comment

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

All 3 comments

Thanks for the report and the suggestion Maryia. The fix will be available in the next release (I hope to publish it tomorrow)

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 @maryia-kabash found the issue, will be fixed in the next release!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

faizansaiyed picture faizansaiyed  路  3Comments

alibouaziz picture alibouaziz  路  3Comments

desilvaNSP picture desilvaNSP  路  3Comments

krunal039 picture krunal039  路  3Comments

YashPrince picture YashPrince  路  3Comments