microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
46 stars 44 forks source link

Visual bug with selections due to whitespace #217

Closed Joshua-Barclay closed 1 year ago

Joshua-Barclay commented 1 year ago

When selecting options from the control the data is saved differently depending on the order of selection. In many cases the data will not have a leading space and won't match the UI component when reloaded.

Our control is defined with a backing multi-line text area and values separated by a semi-colon and a space: Option A; Option B; Option C; Option D; image

When selecting options from the top-down (a, then b, then c) the values correctly tick in the UI: image Notice the spacing in the 'data field' above - there's a space after each semi-colon.

When skipping the top option (select b, then c) the white-space no longer matches and the UI does not think the component is selected: image

This is a visual selection bug only (search and data export works as expected) but it does have a significant impact on user experience, especially in our scenario where there are dozens of selectable options.

AminTi commented 1 year ago

 Thanks for reporting, we'll dig into this.