Fix options inside optgroups (active check is unnecessary)

This commit is contained in:
porsager 2016-11-21 09:59:21 +01:00
parent af01c3c89f
commit fd484f9766

View file

@ -433,7 +433,7 @@ module.exports = function($window) {
//setting input[value] to same value by typing on focused element moves cursor to end in Chrome
if (vnode.tag === "input" && key === "value" && vnode.dom.value === value && vnode.dom === $doc.activeElement) return
//setting option[value] to same value while having select open blinks select dropdown in Chrome
if (vnode.tag === "option" && key === "value" && vnode.dom.value === value && vnode.dom.parentNode === $doc.activeElement) return
if (vnode.tag === "option" && key === "value" && vnode.dom.value === value) return
element[key] = value
}
else {