diff --git a/.gitignore b/.gitignore index d4de8fc..37bf862 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules .cache dist +storybook-static diff --git a/package.json b/package.json index 3bfc63d..d367e96 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.5", + "version": "1.0.6", "license": "MIT", "author": "Harsh Zalavadiya", "module": "dist/react-tag-input-component.esm.js", diff --git a/src/index.tsx b/src/index.tsx index 4f6cd9d..c99dead 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -90,6 +90,7 @@ export const TagsInput = ({ } setTags([...tags, text]); e.target.value = ""; + e.preventDefault(); } };