[render/render] Add a special case for ; fix #1870

This commit is contained in:
Pierre-Yves Gérardy 2017-06-12 18:42:46 +02:00
parent 894152440b
commit 60e999fa89

View file

@ -483,7 +483,7 @@ module.exports = function($window) {
if (key === "value") {
var normalized = "" + 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 === normalized && vnode.dom === $doc.activeElement) return
if ((vnode.tag === "input" || vnode.tag === "textarea") && vnode.dom.value === normalized && 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) {