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

Commit b27f88a

Browse files
committed
test(input): use VALIDITY_STATE_PROPERTY when detecting if an input hasNativeValidators
1 parent be17bcb commit b27f88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ function createDateInputType(type, regexp, parseDate, format) {
13711371

13721372
function badInputChecker(scope, element, attr, ctrl) {
13731373
var node = element[0];
1374-
var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);
1374+
var nativeValidation = ctrl.$$hasNativeValidators = isObject(node[VALIDITY_STATE_PROPERTY]);
13751375
if (nativeValidation) {
13761376
ctrl.$parsers.push(function(value) {
13771377
var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};

0 commit comments

Comments
 (0)