Skip to content

Commit

Permalink
Merge pull request #11 from lorado/master
Browse files Browse the repository at this point in the history
Initial value on edit is not defined
  • Loading branch information
advoor authored May 1, 2019
2 parents eba953f + 700f21a commit cb6a029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@
*/
setInitialValue() {
this.value = this.field.value;
let self = this;
let currentContent = (self.field.value ? JSON.parse(self.field.value) : self.field.value);
let tools = {};
Expand Down

0 comments on commit cb6a029

Please sign in to comment.