diff --git a/mithril.js b/mithril.js index fe4d9c54a..7012933ac 100644 --- a/mithril.js +++ b/mithril.js @@ -1065,7 +1065,7 @@ var coreRenderer = function($window) { // Only do the coercion if we're actually going to check the value. /* eslint-disable no-implicit-coercion */ //setting input[value] to same value by typing on focused element moves cursor to end in Chrome - if ((vnode.tag === "input" || vnode.tag === "textarea") && vnode.dom.value === "" + value && vnode.dom === $doc.activeElement) return + if ((vnode.tag === "input" || vnode.tag === "textarea") && vnode.dom.value === "" + value) return //setting select[value] to same value while having select open blinks select dropdown in Chrome if (vnode.tag === "select" && old !== null && vnode.dom.value === "" + value) return //setting option[value] to same value while having select open blinks select dropdown in Chrome diff --git a/mithril.min.js b/mithril.min.js index 731125999..372c75fe2 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -31,15 +31,15 @@ null!=b.text&&null!=f.text&&""!==f.text?b.text.toString()!==f.text.toString()&&( return c}function C(a,b,c){null!=c?a.insertBefore(b,c):a.appendChild(b)}function c(a){var b=a.children;if(null!=b&&1===b.length&&"<"===b[0].tag)b=b[0].children,a.dom.innerHTML!==b&&(a.dom.innerHTML=b);else if(null!=a.text||null!=b&&0!==b.length)throw Error("Child node of a contenteditable must be trusted");}function y(a,b,c){for(;b