Skip to content

Commit

Permalink
add npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jan 20, 2022
1 parent 12b60bb commit e46c822
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tag-version-prefix=""
3 changes: 2 additions & 1 deletion tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ class Tags {
if (!text) {
return false;
}
if(this.isDisabled()) {
// Check disabled
if (this.isDisabled()) {
return false;
}
// Check already selected input (single will replace)
Expand Down
1 change: 1 addition & 0 deletions test/tags.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ test("it prevents adding if necessary", (t) => {
t.falsy(disabledTags.canAdd("test"));

// Let's add one then test
t.truthy(maxTags.canAdd("test"));
maxTags.addItem("test");
t.falsy(maxTags.canAdd("test"));
});

0 comments on commit e46c822

Please sign in to comment.