Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

ui-select2 does not split on select2's "separator" option for multiple tags #156

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ angular.module('ui.select2', []).value('uiSelect2Config', {}).directive('uiSelec
if (opts.multiple) {
var viewValue = controller.$viewValue;
if (angular.isString(viewValue)) {
viewValue = viewValue.split(',');
viewValue = viewValue.split(opts.separator);
}
elm.select2(
'data', convertToSelect2Model(viewValue));
Expand Down