Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 17bf3e3

Browse files
committed
tweaks after peer review
1 parent 98352b9 commit 17bf3e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/views/itemEditVw.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ module.exports = baseVw.extend({
197197
this.$('#inputKeyword').removeClass('invalid');
198198
},
199199
onTagRemove: () => {
200-
this.$('#inputKeyword').addClass('invalid');
200+
if (!self.inputKeyword.getTags().elements.length) {
201+
self.$('#inputKeyword').addClass('invalid');
202+
}
201203
}
202204
});
203205
}, 0);
@@ -624,7 +626,6 @@ module.exports = baseVw.extend({
624626

625627
inputName = (($label = self.$("label[for='"+$(this).attr('id')+"']")).length && $label.text()) ||
626628
$(this).attr('data-label') || $(this).attr('id');
627-
inputName = inputName.trim();
628629

629630
invalidInputList.push(inputName.trim())
630631
});

0 commit comments

Comments
 (0)