Custom component with extended type does not update content value #5823
Unanswered
ptt-joaoferreira
asked this question in
Q&A
Replies: 1 comment 3 replies
-
don't use |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hello,
I'm trying to create a new component by extending the "core" type text so I am abre to freely edit text on canvas but using my custom traits.
When I update the textbox in canvas, the HTML get's updates aswell.
When I use in traits
...getSelected().set('content', 'whatever);
the value in canvas disappears and html doesn't get updated.This behaviour just happens when I am extending in the new type. If I remove that extend, the canvas works as expected but, I am unable to edit the text.
Any ideas on this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions