Hide editor on input change

This commit is contained in:
Konrad Borowski 2019-12-22 15:13:02 +01:00
parent a29e5be6b4
commit 44299b2998

View File

@ -100,6 +100,7 @@ class Editor {
}
changeToLookLikeNewPaste() {
this.clearOutput()
if (this.autodeleteText) {
this.autodeleteText.style.display = 'none'
}
@ -141,8 +142,7 @@ class Editor {
}
async run(wrapper, compilerOptions) {
this.output.clear()
this.editor.update()
this.clearOutput()
if (this.abortEval) {
this.abortEval.abort()
}
@ -180,6 +180,11 @@ class Editor {
this.output.display(wrapper, response)
this.editor.update()
}
clearOutput() {
this.output.clear()
this.editor.update()
}
}
export default function createEditor(form) {