Simplify ESLint guard
This commit is contained in:
parent
4616160a52
commit
66aa377548
1 changed files with 1 additions and 3 deletions
|
|
@ -481,9 +481,7 @@ module.exports = function($window) {
|
||||||
else if (key === "style") updateStyle(element, old, value)
|
else if (key === "style") updateStyle(element, old, value)
|
||||||
else if (key in element && !isAttribute(key) && ns === undefined && !isCustomElement(vnode)) {
|
else if (key in element && !isAttribute(key) && ns === undefined && !isCustomElement(vnode)) {
|
||||||
if (key === "value") {
|
if (key === "value") {
|
||||||
/*eslint-disable no-implicit-coercion*/
|
var normalized = "" + value // eslint-disable-line no-implicit-coercion
|
||||||
var normalized = "" + value
|
|
||||||
/*eslint-enable 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.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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue