Text editor: fix crash when assigning new value to file input controls

Fixes #5911
sort-optimisations
jeremy@jermolene.com 2021-07-30 16:31:42 +01:00
rodzic 0413c3a38e
commit 2720072b23
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -135,7 +135,11 @@ FramedEngine.prototype.setText = function(text,type) {
Update the DomNode with the new text
*/
FramedEngine.prototype.updateDomNodeText = function(text) {
this.domNode.value = text;
try {
this.domNode.value = text;
} catch(e) {
// Ignore
}
};
/*

Wyświetl plik

@ -85,7 +85,11 @@ SimpleEngine.prototype.setText = function(text,type) {
Update the DomNode with the new text
*/
SimpleEngine.prototype.updateDomNodeText = function(text) {
this.domNode.value = text;
try {
this.domNode.value = text;
} catch(e) {
// Ignore
}
};
/*