From f92a8a3f23ec2c35850bece18d9c499ce1449a91 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Feb 2024 14:20:28 +0800 Subject: [PATCH] bugfix --- bricks/input.js | 6 ++++++ 1 file changed, 6 insertions(+) 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