When changing the value of a select box via the "Enable Builtin Field support" feature, the change event is not fired.
Examples of problems caused by this:
when the "Enable Builtin Field support" feature is used to update the value of a category, the default person is not applied even if the default person for the category has been determined.
customisation of select box values in ViewCustomize plugin does not work when the "Enable Builtin Field support" feature is used to change them Example: https://github.com/onozaty/ redmine-view-customize-scripts/blob/master/examples/0008.change_custom_field_visibility_by_status/example.md
When changing the value of a select box via the "Enable Builtin Field support" feature, the change event is not fired.
Examples of problems caused by this:
Why not fire the change event manually, like
element.dispatchEvent(new Event("change")
, after changing the value of the select box? There are other places wheredocument.getElementById('issue_template').dispatchEvent(changeEvent)
is done. https://github.com/agileware-jp/redmine_issue_templates/blob/master/assets/javascripts/issue_templates.js#L420-L423Thank you.