File tree Expand file tree Collapse file tree
lib/public/components/common/selection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,7 +260,6 @@ export class SelectionModel extends Observable {
260260
261261 if ( this . _selectionBacklog . length ) {
262262 this . selectedOptions = this . _selectionBacklog ;
263- this . _selectionBacklog = [ ] ;
264263 this . notify ( ) ;
265264 }
266265 }
@@ -355,10 +354,10 @@ export class SelectionModel extends Observable {
355354 * Sets selected options based on a comma-seperated string.
356355 * Accounts for the options being either RemoteData or an array.
357356 *
358- * @return {string }
357+ * @param {string } value the value that is to be set.
359358 */
360359 set normalized ( value ) {
361- const options = value . split ( ',' ) . map ( ( option ) => ( { value : option } ) ) ;
360+ const options = value . split ( ',' ) . map ( ( option ) => ( { value : option . trim ( ) } ) ) ;
362361 const postponeSelection = this . options instanceof RemoteData || ! this . options ?. length ;
363362
364363 if ( postponeSelection ) {
You can’t perform that action at this time.
0 commit comments