From 205d4a17159ad7acc797926b186d247e8b79bc54 Mon Sep 17 00:00:00 2001 From: Harsh Zalavadiya Date: Sun, 3 Jan 2021 18:29:56 +0530 Subject: [PATCH] :bug: prevent event bubbling --- package.json | 2 +- src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d367e96..9f4573f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-tag-input-component", "description": "lightweight component for tag(s) input", - "version": "1.0.6", + "version": "1.0.7", "license": "MIT", "author": "Harsh Zalavadiya", "module": "dist/react-tag-input-component.esm.js", diff --git a/src/index.tsx b/src/index.tsx index c99dead..98595c9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -110,7 +110,7 @@ export const TagsInput = ({ type="text" name={name} placeholder={placeHolder} - onKeyUp={handleOnKeyUp} + onKeyDown={handleOnKeyUp} onBlur={onBlur} />