Merge pull request #1417 from veloce/fix-blinking-select
Fix blinking select in chrome when setting select property in select tag
This commit is contained in:
commit
57cbd54fe8
1 changed files with 2 additions and 0 deletions
|
|
@ -432,6 +432,8 @@ module.exports = function($window) {
|
|||
else if (key in element && !isAttribute(key) && ns === undefined) {
|
||||
//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 select[value] to same value while having select open blinks select dropdown in Chrome
|
||||
if (vnode.tag === "select" && 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) return
|
||||
element[key] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue