Skip to content

Commit

Permalink
Update render.js
Browse files Browse the repository at this point in the history
Signed-off-by: Claudia Meadows <[email protected]>
  • Loading branch information
dead-claudia committed Jan 26, 2025
1 parent 98fa50a commit 6387ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ module.exports = function() {
/* eslint-disable no-implicit-coercion */
//setting input[value] to same value by typing on focused element moves cursor to end in Chrome
//setting input[type=file][value] to same value causes an error to be generated if it's non-empty
//resetting user-edited values by script bypasses minlength/maxlength validation(#2256)
//minlength/maxlength validation isn't performed on script-set values(#2256)
if ((vnode.tag === "input" || vnode.tag === "textarea") && vnode.dom.value === "" + value) return
//setting select[value] to same value while having select open blinks select dropdown in Chrome
if (vnode.tag === "select" && old !== null && vnode.dom.value === "" + value) return
Expand Down

0 comments on commit 6387ff6

Please sign in to comment.