set toolbox other/other_i18n input.value to empty string if not needed

This commit is contained in:
Richard Schreiber
2022-08-04 17:12:57 +02:00
parent 6c7f5f4888
commit 4cd4b94a4b
@@ -620,6 +620,14 @@ var editor = {
}
}
// empty text-inputs if not in use
if ($("#toolbox-content").val() !== "other") {
$("#toolbox-content-other").val("");
}
if ($("#toolbox-content").val() !== "other_i18n") {
$("#toolbox-content-other-i18n textarea").val("");
}
o.setCoords();
editor.fabric.renderAll();
},