Skip to content

Commit 31f25f2

Browse files
🐛 prevent event bubbling in form
1 parent e255833 commit 31f25f2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
node_modules
44
.cache
55
dist
6+
storybook-static

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-tag-input-component",
33
"description": "lightweight component for tag(s) input",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"license": "MIT",
66
"author": "Harsh Zalavadiya",
77
"module": "dist/react-tag-input-component.esm.js",

src/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const TagsInput = ({
9090
}
9191
setTags([...tags, text]);
9292
e.target.value = "";
93+
e.preventDefault();
9394
}
9495
};
9596

0 commit comments

Comments
 (0)