Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: component:styleUpdate / component:styleUpdate:propertyName not fired #4897

Closed
2 tasks done
rudacs opened this issue Feb 3, 2023 · 3 comments
Closed
2 tasks done

Comments

@rudacs
Copy link

rudacs commented Feb 3, 2023

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Edge 109.0.1518.70

Reproducible demo link

https://jsfiddle.net/rudacs/kr2x1mnh/

Describe the bug

How to reproduce the bug?

  1. Change some property in StyleManager.
  2. Change the width property on the StyleManager.

What is the expected behavior?
The events component:styleUpdate is fired.

What is the current behavior?
No events component:styleUpdate are triggered.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@artf
Copy link
Member

artf commented Feb 5, 2023

Hey @rudacs did you try instead using style:property:update?

@rudacs
Copy link
Author

rudacs commented Feb 6, 2023

This event worked. Was it changed to this one?
And for a single property?
How do I get what was the component and property changed?

Tranks.

@SagarMaria
Copy link

SagarMaria commented Apr 28, 2023

came here because I have the same issue.

Using the suggested style:property:update seems to work, but for some reason it fires on every click.

Also, how can we target a particular style property change, i.e. text-align?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants