diff --git a/client/rerender.js b/client/rerender.js
index e5f03f2e..cb25092c 100644
--- a/client/rerender.js
+++ b/client/rerender.js
@@ -109,9 +109,9 @@ function _rerender(current, next) {
}
if (current.type === 'textarea') {
- current.value = current.children[0].text
- next.value = next.children[0].text
- updateAttributes(selector, current, next)
+ current.attributes.value = current.children[0].text
+ next.attributes.value = next.children[0].text
+ updateAttributes(selector, current.attributes, next.attributes)
return
}
diff --git a/package.json b/package.json
index ea232fdf..2a95070b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nullstack",
- "version": "0.17.2",
+ "version": "0.17.3",
"description": "Full Stack Javascript Components for one-dev armies",
"main": "nullstack.js",
"author": "Mortaro",
diff --git a/tests/src/TwoWayBindings.njs b/tests/src/TwoWayBindings.njs
index 8a2b4f38..45a2c7c2 100644
--- a/tests/src/TwoWayBindings.njs
+++ b/tests/src/TwoWayBindings.njs
@@ -27,6 +27,8 @@ class TwoWayBindings extends Nullstack {
debouncedEvent = '69'
debounceTime = 1000
+ textareaDisabled = false
+
parse({ event, source: bind, callback }) {
const normalized = event.target.value.replace(',', '').padStart(3, '0')
const whole = (parseInt(normalized.slice(0, -2)) || 0).toString()
@@ -68,10 +70,13 @@ class TwoWayBindings extends Nullstack {
{!this.boolean &&
}
{this.number > 1 && }
-
+
+