Error in IE11 due to setting of type attribute

If you assign an input type that is not supported by IE11 with an
assignment expression, an error will occur.
This commit is contained in:
Tetsuro Yoshikawa 2017-02-09 22:27:55 +09:00
parent 5faa996805
commit fdf2985adf
3 changed files with 22 additions and 12 deletions

View file

@ -443,6 +443,11 @@ module.exports = function($window) {
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 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);
return
}
element[key] = value
}
else {