Skip to content

Commit

Permalink
bugfix null value
Browse files Browse the repository at this point in the history
  • Loading branch information
bashgeek committed Nov 21, 2023
1 parent 8e0f975 commit 3771fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
:type="currentField.inputType"
:placeholder="currentField.placeholder"
class="flex-1 form-control form-input form-input-bordered"
@keypress.enter.prevent="addItem"
@keydown.enter.prevent="addItem"
/>
<button
type="button"
Expand Down Expand Up @@ -106,7 +106,7 @@ export default {
setInitialValue()
{
this.value = JSON.stringify(this.fieldValue);
this.items = this.fieldValue;
this.items = this.fieldValue ?? [];
},
fill(formData)
Expand Down

0 comments on commit 3771fb7

Please sign in to comment.