Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ee0ad31

Browse files
committed
fix(jqLite): Firefox validation trigger
Do not trigger Firefox validation on form initialization. - Do not set a value to an <input> field if the field already has the same value Closes #12102
1 parent 71fc3f4 commit ee0ad31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/jqLite.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,10 @@ forEach({
671671
}
672672
return element.value;
673673
}
674-
element.value = value;
674+
// Workaround for Firefox validation #12102.
675+
if (element.value != value) {
676+
element.value = value;
677+
}
675678
},
676679

677680
html: function(element, value) {

0 commit comments

Comments
 (0)