Skip to content

Commit a5381c8

Browse files
Arthur Agombart arthur.agombart@gmail.comArthur Agombart arthur.agombart@gmail.com
authored andcommitted
fix: Use good min/max length params
1 parent 65d3cec commit a5381c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/input-tags.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class InputTags {
3737
const tagText = this.getTagText(tag);
3838
const key = this.keyProperty || this.displayProperty;
3939
const valid = tagText &&
40-
tagText.length >= this.minLength &&
41-
tagText.length <= this.maxLength &&
40+
this.tags.length >= this.minLength &&
41+
this.tags.length <= this.maxLength &&
4242
!this.tags.some(element => element[key] === tag[key]);
4343

4444
if (this.onTagAdding) {

0 commit comments

Comments
 (0)