diff --git a/bricks/input.js b/bricks/input.js index 3919d7f..2cb0fad 100755 --- a/bricks/input.js +++ b/bricks/input.js @@ -504,6 +504,7 @@ bricks.UiText =class extends bricks.UiType { this.value = this.dom_element.innerText; } resultValue(){ + this.value = this.dom_element.innerText; return this.value; } setValue(v){ @@ -572,12 +573,17 @@ bricks.UiCode =class extends bricks.UiType { e.replaceChildren(); var v = this.opts.value || this.opts.defaultvalue; this.value = v; + e.value = v; this.option_widgets = {}; for (var i=0; i