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

Commit 8e59e1a

Browse files
committed
Remove taggingLabel from item even when clicked
1 parent d1ce1cf commit 8e59e1a

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
@@ -440,6 +440,8 @@ uis.controller('uiSelectCtrl',
440440
ctrl.close(skipFocusser);
441441
return;
442442
}
443+
} else if ( typeof item === 'string') {
444+
item = item.replace(ctrl.taggingLabel,'').trim();
443445
}
444446
_resetSearchInput();
445447
$scope.$broadcast('uis:select', item);

0 commit comments

Comments
 (0)