Skip to content

resetForm() doesn't reset the value inside of a Monaco editor field #4059

Answered by favna
favna asked this question in Q&A
Discussion options

You must be logged in to vote

I ended up digging more thoroughly through the Vue code of nuxt-monaco-editor wherein I found that they offer to bind a modal-value prop. By setting that to :modal-value="value" resetting the form also clears the monaco editor as the vue code of nuxt-monaco-editor has a watch for that property.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@logaretm
Comment options

Answer selected by favna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants