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

Commit b366f03

Browse files
committed
fix(input): remove workaround for Firefox bug
The bug in question has been fixed in FF 38, which is also the current ESR, so it's safe to remove the workaround: https://bugzilla.mozilla.org/show_bug.cgi?id=1064430
1 parent 76c2491 commit b366f03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ng/directive/input.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1337,11 +1337,7 @@ function badInputChecker(scope, element, attr, ctrl) {
13371337
if (nativeValidation) {
13381338
ctrl.$parsers.push(function(value) {
13391339
var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};
1340-
// Detect bug in FF35 for input[email] (https://bugzilla.mozilla.org/show_bug.cgi?id=1064430):
1341-
// - also sets validity.badInput (should only be validity.typeMismatch).
1342-
// - see http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email)
1343-
// - can ignore this case as we can still read out the erroneous email...
1344-
return validity.badInput && !validity.typeMismatch ? undefined : value;
1340+
return validity.badInput || validity.typeMismatch ? undefined : value;
13451341
});
13461342
}
13471343
}

0 commit comments

Comments
 (0)