Shrinking
This commit is contained in:
parent
71ce364c54
commit
679ee70117
4 changed files with 17 additions and 18 deletions
|
|
@ -700,7 +700,7 @@ module.exports = function($window) {
|
|||
if (vnode.tag === "option" && old !== null && vnode.dom.value === "" + value) return
|
||||
//setting input[type=file][value] to different value is an error if it's non-empty
|
||||
// Not ideal, but it at least works around the most common source of uncaught exceptions for now.
|
||||
if (isFileInput && "" + value !== "") { console.error("`value` is read-only on file inputs!"); return }
|
||||
if (isFileInput && "" + value !== "") { throw new Error("`value` is read-only on file inputs!"); return }
|
||||
/* eslint-enable no-implicit-coercion */
|
||||
}
|
||||
vnode.dom[key] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue