From 38956e119be1d006fac59d88a486322b9ae8f8a3 Mon Sep 17 00:00:00 2001 From: Gandalf-the-Bot Date: Tue, 13 Jun 2017 09:30:45 +0000 Subject: [PATCH] Bundled output for commit c9186bcdec2763dbe953f808de1a6cf62d58ad1a [skip ci] --- mithril.js | 2 +- mithril.min.js | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/mithril.js b/mithril.js index 2d820867..914b0d89 100644 --- a/mithril.js +++ b/mithril.js @@ -836,7 +836,7 @@ var coreRenderer = function($window) { if (key2 === "value") { var normalized0 = "" + value // eslint-disable-line 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.dom.value === normalized0 && vnode.dom === $doc.activeElement) return + if ((vnode.tag === "input" || vnode.tag === "textarea") && vnode.dom.value === normalized0 && vnode.dom === $doc.activeElement) return //setting select[value] to same value while having select open blinks select dropdown in Chrome if (vnode.tag === "select") { if (value === null) { diff --git a/mithril.min.js b/mithril.min.js index c02bdaa5..289dc5b3 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -29,16 +29,16 @@ a[c].dom)return a[c].dom;return b}function k(a,c,b){b&&b.parentNode?a.insertBefo b)for(var e=a.dom;--b;){var g=e.nextSibling,f=g.parentNode;null!=f&&f.removeChild(g)}b=a.dom;e=b.parentNode;null!=e&&e.removeChild(b);if(b=null!=c&&null==a.domSize)b=a.attrs,b=!(null!=b&&(b.oncreate||b.onupdate||b.onbeforeremove||b.onremove));b&&"string"===typeof a.tag&&(c.pool?c.pool.push(a):c.pool=[a])}}var h=1,d=0;if(a.attrs&&"function"===typeof a.attrs.onbeforeremove){var e=a.attrs.onbeforeremove.call(a.state,a);null!=e&&"function"===typeof e.then&&(h++,e.then(b,b))}"string"!==typeof a.tag&&"function"=== typeof a._state.onbeforeremove&&(e=a._state.onbeforeremove.call(a.state,a),null!=e&&"function"===typeof e.then&&(h++,e.then(b,b)));b()}function B(a){a.attrs&&"function"===typeof a.attrs.onremove&&a.attrs.onremove.call(a.state,a);"string"!==typeof a.tag&&"function"===typeof a._state.onremove&&a._state.onremove.call(a.state,a);if(null!=a.instance)B(a.instance);else if(a=a.children,Array.isArray(a))for(var c=0;c