Issue #4208Opened March 22, 2022by ronaldohoch2 reactions

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

  1. Go to demo page
  2. Select any element...
  3. Set the state as click
  4. Edit any border radius
  5. Leave the element clicking in other element
  6. First bug: The UI will get the click state style and after will turn to normal state
  7. Second bug: refresh the page, normal refresh or clear the cache, will you see the styled click state before and it don't leave. I need to clear the canvas to get thinks work normally
  8. 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 click state

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)

artfMarch 25, 20221 reactions

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

ronaldohochMarch 25, 20221 reactions

@artf worked! Thank you 😊

ronaldohochMarch 25, 20220 reactions

@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

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.