From 397f13e2b9fce26c9e0e54aad192e490bc296684 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Feb 2024 14:37:44 +0800 Subject: [PATCH] bugfix --- bricks/input.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bricks/input.js b/bricks/input.js index 4f51520..def6fed 100755 --- a/bricks/input.js +++ b/bricks/input.js @@ -501,11 +501,12 @@ bricks.UiText =class extends bricks.UiType { this.bind('input', this.set_value_from_input.bind(this)) } set_value_from_input(event){ - this.value = this.dom_element.innerText; + this.value = this.dom_element.value; } resultValue(){ - console.log('UiText(), element=', this.dom_element); - this.value = this.dom_element.innerText; + var e = this.dom_element; + console.log('UiText(), element=', e, 'value=', e.value); + this.value = e.value; return this.value; } setValue(v){