After discussing the topic via Jabber with @stefan-cold-haze, I just wanted to leave this here as an “fyi note”.
If you want to set a DropDown via JS you can to this by setting the field.value attribute of the field directly.
However, note the following this:
- It is possible that you need to re-render manually
- The value field has to contain the String key of the tracked enum object that should be placed in the dropdown