stable
Clone or download
Read-only
This contribution aims to bring consitency in the way selected values are passed to the caller code. Before this patch: - single lazybox were returning either null, either a value - multiple lazybox were returning either an empty array, either an array filled with values. Now, both will return an array, empty or filled with values. There will be only one value in the array for single lazyboxes, and 1+ for multiple lazyboxes. implements request #35893 Lazybox selection should always be an array -- no functional change expected Change-Id: I0ed27d74a635c6b3dce4c0318727bdcc3d85fc40
Modified Files
Name | ||||
---|---|---|---|---|
M | lib/frontend/lazybox/src/Options.ts | +2 | −2 | Go to diff View file |
M | lib/frontend/lazybox/src/main.ts | +1 | −0 | Go to diff View file |
M | lib/frontend/lazybox/src/selection/ClearSelectionTemplate.test.ts | +2 | −2 | Go to diff View file |
M | lib/frontend/lazybox/src/selection/SelectionElement.test.ts | +5 | −5 | Go to diff View file |
M | lib/frontend/lazybox/src/selection/SelectionElement.ts | +2 | −3 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/autocompleter/OnSelectionCallback.test.ts | +6 | −2 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/autocompleter/OnSelectionCallback.ts | +2 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/dropdown/LinkableArtifactTemplate.test.ts | +2 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/dropdown/LinkableArtifactTemplate.ts | +6 | −4 | Go to diff View file |
M | src/www/tlp-doc/resources/forms/lazybox/doc.html | +2 | −2 | Go to diff View file |