Skip to content

Commit

Permalink
Save on enter press
Browse files Browse the repository at this point in the history
  • Loading branch information
msassa committed May 12, 2021
1 parent 3a84e4c commit 0debd2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/js/components/IndexField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:placeholder="field.name"
v-model="value"
@blur="save"
@keyup.enter="save"
:style="'min-width:'+field.minWidth+'px;'"
/>
<!-- thanks to https://github.com/epartment/nova-unique-ajax-field/blob/master/resources/js/components/FormField.vue -->
Expand Down

0 comments on commit 0debd2b

Please sign in to comment.