Skip to content

Commit

Permalink
🐛 prevent event bubbling in form
Browse files Browse the repository at this point in the history
  • Loading branch information
harshzalavadiya authored Dec 15, 2020
1 parent e255833 commit 31f25f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules
.cache
dist
storybook-static
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const TagsInput = ({
}
setTags([...tags, text]);
e.target.value = "";
e.preventDefault();
}
};

Expand Down

0 comments on commit 31f25f2

Please sign in to comment.