diff --git a/bower.json b/bower.json index 8d77d22..b138992 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-chips", - "version": "1.0.6", + "version": "1.0.7", "homepage": "https://github.com/mohbasheer/angular-chips", "authors": [ "Mohammed Basheer" diff --git a/package.json b/package.json index 80637ae..a699b32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-chips", - "version": "1.0.0", + "version": "1.0.7", "description": "", "author": "Mohammed Basheer", "license": "MIT", diff --git a/src/js/directives/controls/chip_control.js b/src/js/directives/controls/chip_control.js index 3c05a55..23850fd 100644 --- a/src/js/directives/controls/chip_control.js +++ b/src/js/directives/controls/chip_control.js @@ -19,6 +19,7 @@ if (event.keyCode === 13 && event.target.value !== '') { chipsCtrl.addChip(event.target.value); event.target.value = ""; + event.preventDefault(); } });