Content is lost if other fields have validation issues
jbardnz opened this issue · comments
If you try and submit a form within Nova, and one of the other fields has a validation issue all of the content from the Laraberg editor is lost. Here is a video demonstrating the issue:
screencast-secure.activitysource.dev-2021.03.09-15_09_57.1.mp4
@jbardnz Thanks for reporting this! I have been having this issue as well. Will try to get it fixed soon. Will be glad to accept a PR as well.
@mikebronner can you update beforeUpdate method
beforeUpdate: function () {
this.value = Laraberg.getContent()
this.removeEditor();
},