Adapting form component - 'action' trait input doesn't update when trait is set programatically #4745
-
I've taken the
I've also tried Here's the relevant code: Form component:
Method triggered upon selecting the source of the url
It doesn't even change when selecting another component then selecting the form again. Here's a video showing all of the above: Screen.Recording.2022-11-25.at.13.19.01-1.movInterestingly, the input shows the correct value when the browser is reloaded. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Traits read data directly from the component, so all you have to do is to update your component editor.getSelected().addAttributes({ action: 'new action' }) |
Beta Was this translation helpful? Give feedback.
Traits read data directly from the component, so all you have to do is to update your component