Shrinking

This commit is contained in:
Yorhel 2023-07-28 08:09:46 +02:00
parent 71ce364c54
commit 679ee70117
4 changed files with 17 additions and 18 deletions

View file

@ -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