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){