-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Trait's setValue()
method not called when value changes
#6180
Comments
From what I can see the |
I tried following this discussion to get it working but as you can see in the sandbox it just doesn't work. |
Hey @padcom , I think the value is updating (because the HTML DOM attributes are updated), however, it seems like there might be an issue with the value in the input not being updated. Also, it's not just related to the wrapper component but rather all types being added. I'll look into it and let you know if it's a bug or something is wrong with the code snippit |
That is correct. It's for all component types and for all trait types. |
That's great news! Thank you!!! |
@artf Do you have a release date in mind when this fix could be available? |
Thank you! I verified and it is working as expected! |
GrapesJS version
What browser are you using?
Chrome latest
Reproducible demo link
https://codesandbox.io/p/sandbox/withered-rgb-xmw8gk
Describe the bug
How to reproduce the bug?
What is the expected behavior?
An alert "Setting global value to " + value is shown
What is the current behavior?
Alert not shown, the
trait.setValue()
method is not called.If is necessary to execute some code in order to reproduce the bug, paste it here below:
// your code here
Code of Conduct
The text was updated successfully, but these errors were encountered: