From 753b1abb2167f8dde4fc3dc00d76f781e32bc5a7 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 12 Nov 2014 20:37:16 -0500 Subject: [PATCH] fix #336 (related: #151, #214, #288) --- mithril.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mithril.js b/mithril.js index ff78c1ec..65a8a3cf 100644 --- a/mithril.js +++ b/mithril.js @@ -333,6 +333,9 @@ Mithril = m = new function app(window, undefined) { if (e.message.indexOf("Invalid argument") < 0) throw e } } + else if (attrName === "value" && tag === "input" && node.value !== dataAttr) { + node.value = dataAttr + } } return cachedAttrs }