Issue #2928✓ SolvedOpened July 29, 2020by tranthanhhoa2 reactions

Select the initial background color doesn't work

Quick answerby mcottret2

Hi @tranthanhhoa & @RJCAM, The bug indeed only appears when specifically selecting a background color value of #000000. Tracking it down, it is due to the background-color property's default value of 'none' being set as '' by the color input. It later gets converted to #000000 by the color picker, whereas its actual v...

Read full answer below ↓

Question

Version: 0.16.18

Bug: Select the initial background color is not working

How to reproduce it: https://imgur.com/xqkt46E

Actually:

  • Component's background does not changes.

Expected:

  • Component's background should change to #000000

Thanks @artf !

Answers (3)

👍 Most helpfulmcottretJuly 29, 2020

Hi @tranthanhhoa & @RJCAM, The bug indeed only appears when specifically selecting a background color value of #000000. Tracking it down, it is due to the background-color property's default value of 'none' being set as '' by the color input. It later gets converted to #000000 by the color picker,...

RJCAMJuly 29, 2020

@tranthanhhoa I'm not able to reproduce this bug in the demo (same as you), it's working fine here, check this:

bg-color

What did you do before?

tranthanhhoaJuly 30, 2020

background-color property's default value to transparent worked for me. Thank you so much @mcottret !

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.