BUG: Style click state bug in every element
Question
GrapesJS version
- 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? 0. I have a video: https://www.loom.com/share/508e91098bf247bd93d525f2efa00a36
- Go to demo page
- Select any element...
- Set the state as
click - Edit any border radius
- Leave the element clicking in other element
- First bug: The UI will get the
clickstate style and after will turn to normal state - Second bug: refresh the page, normal refresh or clear the cache, will you see the styled
clickstate before and it don't leave. I need to clear the canvas to get thinks work normally - If you inspect the selected element with developer tools as i made in the video, you will see that the element gjs-selected have the styles made before as
clickstate
What is the expected behavior?
When i change the element, the click state didn't goes to all elements when clicked
What is the current behavior?
click state set the styles to .gjs-selected element
If is necessary to execute some code in order to reproduce the bug, paste it here below: No.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (3)
Thanks for the report @ronaldohoch This will be fixed in the next release.
@artf worked! Thank you 😊
@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.:

Related Questions and Answers
Continue research with similar issue discussions.
Issue #4310
BUG: Style Manager is inaccurate when using combined CSS selectors which contains "bout" and componentFirst = true
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 100 Reproducible demo link https://...
Issue #3866
BUG: SVG Not rendering when inside any HTML Element
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 94.0.4606.81 (Official Build) (64-bi...
Issue #5355
BUG: On move layer
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 116 Reproducible demo link https://...
Issue #4257
BUG: Background modification doesn't work for non-images
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v100 Reproducible demo link https:/...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.