Description
When the ZCode language is not selected, the CodeEditor is disabled, after this change: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1047501
However, the disabled is not reset to false when the language is chosen.
Steps to reproduce:
- Go to https://wikifunctions.beta.wmflabs.org/w/index.php?title=Special:CreateObject&Z14K1=Z10014&uselang=en&zid=Z14
- Select "code" implementation
- Select language from the dropdown
- Try to write some code inside the code editor area
Observed behavior:
- The field is disabled, although the style is set to the enabled state
Expected behavior (Acceptance criteria):
- Every time the field has a chosen language (on edit and on create) the field should be editable
Technical details
Similarly to the "readOnly" watcher, "disabled" prop should also have a watch that triggers re-setting the option in the ACE editor
Devices and Design (URLs or screenshots, if applicable):
- Desktop: ...
- Small screens/mobile: ...
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist