Skip to content

Commit

Permalink
Merge pull request #90 from maximehuran/feature/manage-empty-value
Browse files Browse the repository at this point in the history
Manage empty value in input when it has no element
  • Loading branch information
maximehuran authored Nov 12, 2020
2 parents e0c2304 + ea438f9 commit 8e2f239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ global.MonsieurBizRichEditorManager = class {
}

write() {
this.input.value = JSON.stringify(this.uiElements);
this.input.value = (this.uiElements.length > 0) ? JSON.stringify(this.uiElements) : '';
this.drawUiElements();
}

Expand Down
Loading

0 comments on commit 8e2f239

Please sign in to comment.