We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137915e commit df9b233Copy full SHA for df9b233
test/select.spec.js
@@ -340,6 +340,14 @@ describe('ui-select tests', function() {
340
341
expect($(el).scope().$select.selected).toEqual("I don't exist");
342
});
343
+
344
+ it('should keep the model intact when the tagging attribute is defined', function() {
345
+ scope.selection.selected.push("I am not on the list of choices");
346
+ var el = createUiSelect({tagging: true});
347
+ clickMatch(el);
348
349
+ expect($(el).scope().$select.selected).toEqual("I am not on the list of choices");
350
+ });
351
352
it('should format new items using the tagging function when the attribute is a function', function() {
353
scope.taggingFunc = function (name) {
0 commit comments