Skip to content

Commit

Permalink
fix: when I clicked enter on the input text the page reloaded (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloSF0 authored Feb 19, 2025
1 parent d3ef808 commit 3999149
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/templates/form-fields-inputs/fieldText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
:readonly="readonly"
:disabled="disabled"
type="text"
@keypress.enter.prevent
:placeholder="props.placeholder"
@input="handleChange"
:class="{ 'p-invalid': errorMessage }"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
import { useField } from 'vee-validate'
defineProps({
handleBlock: {
type: Array,
required: false,
default: () => ['full']
},
isDrawer: {
type: Boolean
}
Expand Down

0 comments on commit 3999149

Please sign in to comment.