Issue #2206💬 AnsweredOpened August 20, 2019by WebEtSolutions0 reactions

Style value to "undefined !important"

快速解答by artf

Thanks @WebEtSolutions it'll be fixed in the next release

Read full answer below ↓

Question

代码片段TEXT
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)

artfAugust 25, 2019

Thanks @WebEtSolutions it'll be fixed in the next release

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.