stable

Clone or download

Read-only

fix: select first allowed value when they have changed

part of request #22648 Convert AngularJS directives and controllers to hybrids web components fix request #30389 Target field dependency is no longer auto-selected This fix aims to make the first allowed value selected when the list of allowed values has been changed and the currently selected values are no longer allowed. How to test: - Take two selects having field dependencies between them - Select a value in the source select and a value in the target select - Change the value in the source select again --> If the value previously selected in the target value is no longer allowed by the field dependencies rules, then the first allowed value will be automatically selected --> In the contrary, the previously selected value is kept selected. --> When no value is allowed in the target select, then the previously selected value should be cleared. Change-Id: I80de43d7f27bf7a9073c9472e5d67dcd851a129b

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/select-box-field/SelectBoxFieldController.test.ts +28 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/select-box-field/SelectBoxFieldController.ts +4 −1 Go to diff View file