Issue #3267💬 AnsweredOpened February 11, 2021by mosh-tudor1 reactions

Cannot set 0px box shadow blur

Quick answerby artf1

This one should already be fixed

Read full answer below ↓

Question

For some reason, the editor does not allow to set the blur to 0px. 0 always magically turns into 5px.

<img width="243" alt="Screenshot 2021-02-11 at 17 14 05" src="https://user-images.githubusercontent.com/668451/107664461-ba321e00-6c8c-11eb-91ce-4e8a87a2e33c.png">

Are you able to reproduce the bug from the demo? Yes

You can find this bug here: https://grapesjs.com/demo.html

Answers (4)

artfFebruary 8, 2022

This one should already be fixed

artfFebruary 19, 2021

Thanks, I guess there is some falsy check with the 0 which leads to the default 5px value.

akankshach29March 1, 2021

Would like to help fix this bug. Will raise a PR.

GJSBlockMay 17, 2026

Thanks for reporting this, @mosh-tudor. The issue with Cannot set 0px box shadow blur 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: Add a setTimeou...

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.