From ace6eb4922a787636d606133637df9d3ea640a45 Mon Sep 17 00:00:00 2001 From: Mohammed Basheer Date: Sat, 17 Sep 2016 20:46:47 -0500 Subject: [PATCH 1/2] #12 prevented enter event to make it work properly in form --- src/js/directives/controls/chip_control.js | 1 + 1 file changed, 1 insertion(+) 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(); } }); From d40828ee545d6f6e11ff9cd85803df9b52384394 Mon Sep 17 00:00:00 2001 From: Mohammed Basheer Date: Sat, 17 Sep 2016 20:50:54 -0500 Subject: [PATCH 2/2] updated version to 1.0.7 --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",