Hide editor on input change
This commit is contained in:
parent
a29e5be6b4
commit
44299b2998
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user