ui-select2 icon indicating copy to clipboard operation
ui-select2 copied to clipboard

simple_tags should sets text not id for selection

Open hardywu opened this issue 11 years ago • 0 comments

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.

hardywu avatar Jul 07 '14 15:07 hardywu