Issue #4208πŸ’¬ AnsweredOpened Mar 22, 2022by ronaldohoch2 reactions

Style click state bug in every element

Quick answerby artf❀ 1

Thanks for the report @ronaldohoch This will be fixed in the next release.

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Brave Last, tested on chrome last and Safari Last. Reproducible demo link https://grapesjs.com/demo.html Describe the bug How to reproduce the bug?I have a video: https://www.loom.com/share/508e91098bf247bd93d525f2efa00a36Go to demo pageSelect any element...Set the state as clickEdit any border radiusLeave the element clicking in other elementFirst bug: The UI will get the click state style and after will turn to normal stateSecond bug: refresh the page, normal refresh or clear the cache, will you...

Answers (4)

artfβ€’ Mar 25, 2022

Thanks for the report @ronaldohoch This will be fixed in the next release.

ronaldohochβ€’ Mar 25, 2022

@artf worked! Thank you 😊

ronaldohochβ€’ Mar 25, 2022

@artf I couldn't run it locally because several tests didn't pass, is it like that with you too? Can I try to fix them? e.g.: image

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @ronaldohoch. Great question about Style click state bug in every element. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most operati...

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.