Fix select option to use empty string value, add tests.
This commit is contained in:
parent
2aa6adf440
commit
0f9d5f1631
2 changed files with 42 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ module.exports = function($window) {
|
|||
//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
|
||||
if (vnode.tag === "option" && key === "value" && old != null && vnode.dom.value == value) return
|
||||
// If you assign an input type that is not supported by IE 11 with an assignment expression, an error will occur.
|
||||
if (vnode.tag === "input" && key === "type") {
|
||||
element.setAttribute(key, value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue