diff --git a/src/tags-input.js b/src/tags-input.js index 82091213..b644336d 100644 --- a/src/tags-input.js +++ b/src/tags-input.js @@ -413,7 +413,7 @@ tagsInput.directive('tagsInput', function($timeout, $document, $window, $q, tags addKeys = {}, shouldAdd, shouldRemove, shouldSelect, shouldEditLastTag, newTagText = scope.newTag.text(); - if ((event.keyCode == 229) && (scope.text[newTagText.length -1] == ',')) { + if ((event.keyCode === 229) && (scope.text[newTagText.length -1] === ',')) { key = KEYS.comma; newTagText = newTagText.slice(0, -1); // Remove comma }