Open hardywu opened 10 years ago
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.
model.push(value.id);
value.text
In the code
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.