From db17958f0b96204ee8d97c882323d93c32564be2 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 5 May 2016 13:12:36 -0400 Subject: [PATCH] #691 sync input if user-set DOM value --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 2f66d2cc..a030481b 100644 --- a/mithril.js +++ b/mithril.js @@ -1090,7 +1090,7 @@ tag, namespace ) { - if (!(attrName in cachedAttrs) || (cachedAttr !== dataAttr)) { + if (!(attrName in cachedAttrs) || (cachedAttr !== dataAttr) || ($document.activeElement === node)) { cachedAttrs[attrName] = dataAttr try { return setSingleAttr(