Traits init() function not working #5393
Unanswered
kartikvxceed
asked this question in
Q&A
Replies: 1 comment
-
Please provide a reproducible demo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is my code for button trait in GrapesJS, when I write an init() function I am not able to change the button inner text value. (Ex: Button value is 'Click Me' when I edit it, the value is not changing). When I remove the init() function it works fine.
Also, when I drag and drop a new button, the new button is blank and cannot be edited. All these problems are gone when I remove the init() method, but I need the init() to listen to a select event and disable/enable the input text for the same button trait.
@artf any insights would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions