BUG: CSS Properties are not correctly loaded if style manager panel is not active at initialization
Question
Hi @artf!
Let me describe the issue
Version:
16.22
What is the expected behavior? The css property values and visibility settings should take the correct configuration Describe the bug detailed If the style manager is not active on editor load, when you click on an element and open the style properties, they are not updated.
Steps to reproduce
1 - Make the style manager panel view not active by default 2 - Make any css property in a component unstylable, In this example, the text component css 'display' property is unstylable 3 - When you click and open the styles view of the component, the display property is present <img width="1305" alt="image" src="https://user-images.githubusercontent.com/1976679/92250339-a4ddea00-eecb-11ea-8178-a7980db90642.png"> 4 - Click on any other component and go back to the style settings of the text, the display will not be visible. <img width="727" alt="image" src="https://user-images.githubusercontent.com/1976679/92250476-d060d480-eecb-11ea-8fd2-47b425361c61.png">
This is related to the propertyView method targetUpdated not being fired the first time the style manager loads if its panel is not active at the initialization process, I've tried to find a fix for this but i need some guidance here.
This not only affects the visibility but also the values are not correctly displayed.
Let me know what you think,
Thanks!
Answers (2)
I guess we have to call checkVisibility also in render (probably before onRender call)
I'm closing this one as I'd expect this to be fixed from v0.18.*
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3242
BUG: When Style Manager is in another div, the message "Select an element before using Style Manager" is not showing
Version: 0.16.34 What is the expected behavior? When the editor is initialized, no element is selected, so the style manager should say "Se...
Issue #3291
BUG (v0.16.41): the duplicate icon from the icon toolbar is modifying the original element too
Version: v0.16.41 Are you able to reproduce the bug from the demo? [ ] Yes What is the expected behavior? The elements duplicated not shoul...
Issue #2982
BUG: Executing editor.load(x) on x = editor.store() results in error.
Version: 0.16.18 Are you able to reproduce the bug from the demo? [X ] Yes [ ] No What is the expected behavior? I would expect that assets...
Issue #3455
BUG: Style gets wiped out when inserting components in multiple page using Page Manager
Version: 0.17.3 What is the expected behavior? Style should be retained across multiple pages Describe the bug detailed We have use case wh...
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.