Skip to content

Commit 6b0985e

Browse files
committed
feat: remove minLength feature
1 parent 86485fc commit 6b0985e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/dev-server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ angular.module('dev-server', ['angularjs-input-tags'])
1313
disabled="$ctrl.disabled"
1414
key-property="code"
1515
display-property="title"
16-
get-suggestions="$ctrl.updateSuggestions"
17-
min-length="1"></input-tags>
16+
get-suggestions="$ctrl.updateSuggestions"></input-tags>
1817
<pre>{{$ctrl.tags | json}}</pre>`,
1918
controller: searchCtrl
2019
});

src/input-tags.component.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class InputTags {
2020
this.keyProperty = this.keyProperty || '';
2121
this.placeholder = this.placeholder || 'Add a tag';
2222
this.spellcheck = this.spellcheck || true;
23-
this.minLength = this.minLength || 1;
2423
this.maxLength = this.maxLength || MAX_SAFE_INTEGER;
2524
this.inputDebounce = this.inputDebounce || 125;
2625
}
@@ -37,7 +36,6 @@ class InputTags {
3736
const tagText = this.getTagText(tag);
3837
const key = this.keyProperty || this.displayProperty;
3938
const valid = tagText &&
40-
this.tags.length >= this.minLength &&
4139
this.tags.length <= this.maxLength &&
4240
!this.tags.some(element => element[key] === tag[key]);
4341

@@ -101,7 +99,6 @@ const InputTagsComponent = {
10199
placeholder: '@',
102100
tabindex: '@',
103101
spellcheck: '@',
104-
minLength: '@',
105102
maxLength: '@',
106103
inputDebounce: '@',
107104
tags: '<',

0 commit comments

Comments
 (0)