Style value to "undefined !important"
Question
Hi !
Little problem when I type a style property with important. When I clear the value of the field (like color type for exemple) value is set to "undefined !important".
For fix this, on Property.getFullValue, you must check the value before add " !important" :
if (value !== undefined && this.get('important'))
{
value = `${value} !important`;
}
Bye !Answers (1)
Thanks @WebEtSolutions it'll be fixed in the next release
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1104
[Bug] Color trait can't setup property after 0.14.9
After v0.14.9 color trait can't setup component property when user press "OK" on colorpicker form. Live:v0.14.9 https://jsfiddle.net/Lqm7ou...
Issue #3260
BUG: Color Picker Transparency slider is at 0 in firefox.
The color picker in grapesjs does not work the same between Chrome and Firefox. When you open the picker on a selected component that has n...
Issue #2028
[Style manager] Unit don't change on Composite Type
Hi, I have an error on your demo :( 1- In the style, on the "Build your templates without coding" text, set TOP to 5px 2- In the same eleme...
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://...
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.