Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 651da0a

Browse files
committed
Remove taggingLabel from item even when clicked
1 parent 08a0752 commit 651da0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/uiSelectController.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ uis.controller('uiSelectCtrl',
425425
ctrl.close(skipFocusser);
426426
return;
427427
}
428+
} else if ( typeof item === 'string') {
429+
item = item.replace(ctrl.taggingLabel,'').trim();
428430
}
429431
_resetSearchInput();
430432
$scope.$broadcast('uis:select', item);

0 commit comments

Comments
 (0)