fix textarea renderer for getting/setting value correctly

This commit is contained in:
dcore94 2023-02-02 09:59:50 +01:00
parent 8d525c829b
commit c243983942
1 changed files with 2 additions and 2 deletions

View File

@ -342,11 +342,11 @@ class CodeInputRenderer extends Renderer{
}
getValue(parent){
return parent.querySelector("textarea").textContent
return parent.querySelector("textarea").value
}
setValue(parent, v){
parent.querySelector("textarea").textContent = v
parent.querySelector("textarea").value = v
}
connectedCallback(controller){