ui-select2
ui-select2 copied to clipboard
simple_tags should sets text not id for selection
In the code
var convertToAngularModel = function(select2_data) {
var model;
if (opts.simple_tags) {
model = [];
angular.forEach(select2_data, function(value, index) {
model.push(value.id);
});
} else {
model = select2_data;
}
return model;
};
model.push(value.id); makes the selection render value.id which should not be what it means by 'simple_tags'. value.text should be better here.