[render/render] Add a special case for ; fix #1870
This commit is contained in:
parent
894152440b
commit
60e999fa89
1 changed files with 1 additions and 1 deletions
|
|
@ -483,7 +483,7 @@ module.exports = function($window) {
|
||||||
if (key === "value") {
|
if (key === "value") {
|
||||||
var normalized = "" + value // eslint-disable-line no-implicit-coercion
|
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
|
//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
|
//setting select[value] to same value while having select open blinks select dropdown in Chrome
|
||||||
if (vnode.tag === "select") {
|
if (vnode.tag === "select") {
|
||||||
if (value === null) {
|
if (value === null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue