When editing dropdown or tag control properties, changing the value type, single/multi, or the list of tags would not update the chosen defualt_value.
That leads to problems like integer multiselects having a default value of 1 (integer), causing the backend code to blow up trying to iterate over the chosen options.
wip - fixes the bug, but the reset method should be shared, and should pick the first value sometimes, (and maybe even preserve the original value if it still exists)
and move the watch part of entries change to oninit too
and check out the intent behind the relevant changes from https://github.com/ManageIQ/ui-components/pull/223
and convertValuesToArray should be merged into this code too
When editing dropdown or tag control properties, changing the value type, single/multi, or the list of tags would not update the chosen defualt_value.
That leads to problems like integer multiselects having a default value of
1
(integer), causing the backend code to blow up trying to iterate over the chosen options.Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1746211
wip - fixes the bug, but the reset method should be shared, and should pick the first value sometimes, (and maybe even preserve the original value if it still exists) and move the watch part of entries change to oninit too and check out the intent behind the relevant changes from https://github.com/ManageIQ/ui-components/pull/223 and convertValuesToArray should be merged into this code too