Issue #4006πŸ’¬ AnsweredOpened December 9, 2021by dev43220 reactions

Background color automatically changes to black

Quick answerby artf

I'm not able to reproduce it, are you able to provide a screen recording of the issue?

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://grapesjs.com/demo.html. Describe the bug By default background color is none. When i click on color picker to change the background color and doesn't select any color from color picker. (closes color picker modal on clicking screen not on modal ). it automatically changes color to black. you can reproduce this issue on official demo https://grapesjs.com/demo.html. is there any way t fix this?? Code of Conduct [X] I agree to follow this project's Code of Conduct

Answers (4)

artfβ€’ December 9, 2021

I'm not able to reproduce it, are you able to provide a screen recording of the issue?

jloguercioβ€’ January 11, 2022

I have the same issue, if you click outside the colorpicker it turn in black

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @dev4322. The issue with Background color automatically changes to black appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating an inconsistent state. What to try: A...

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.