Skip to content

Commit

Permalink
Merge pull request #323 from nymag/repeated-simple-list
Browse files Browse the repository at this point in the history
display repeat message
  • Loading branch information
nelsonpecora committed Jan 4, 2016
2 parents a05a9f2 + bdd23db commit 8cf4740
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions behaviors/simple-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ module.exports = function (result, args) {

if (val.length && repeated) {
addEl.setCustomValidity('Repeated items are not allowed!');
addEl.reportValidity();
} else if (val.length && !repeated) {
addEl.setCustomValidity(''); // valid input
addEl.value = ''; // remove it from the add-item field
Expand Down

0 comments on commit 8cf4740

Please sign in to comment.