Skip to content

Commit

Permalink
fix: keypress
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanvier committed Jan 31, 2024
1 parent a8e0426 commit 943a102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wgr-sa/nuxt-form",
"description": "Form builder for Nuxt",
"version": "0.7.9",
"version": "0.8.0",
"repository": "https://github.com/WGR-SA/nuxt-form.git",
"author": "jeanvier",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/FormSubmit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const submit = async () => {
onMounted(() => {
document.addEventListener('keypress', function (event) {
event.preventDefault();
if (event.key === 'Enter') {
event.preventDefault();
submit()
}
});
Expand Down

0 comments on commit 943a102

Please sign in to comment.