diff --git a/dist/client-side-validations.esm.js b/dist/client-side-validations.esm.js index 9e96e6e4..3088dfd0 100644 --- a/dist/client-side-validations.esm.js +++ b/dist/client-side-validations.esm.js @@ -673,7 +673,8 @@ var isMarkedForDestroy = function isMarkedForDestroy($element) { return false; }; var executeAllValidators = function executeAllValidators($element, validators) { - if ($element.data('changed') === false || $element.prop('disabled')) { + var element = $element[0]; + if ($element.data('changed') === false || element.disabled) { return; } $element.data('changed', false); diff --git a/dist/client-side-validations.js b/dist/client-side-validations.js index ebf191fe..2ce97c4b 100644 --- a/dist/client-side-validations.js +++ b/dist/client-side-validations.js @@ -677,7 +677,8 @@ return false; }; var executeAllValidators = function executeAllValidators($element, validators) { - if ($element.data('changed') === false || $element.prop('disabled')) { + var element = $element[0]; + if ($element.data('changed') === false || element.disabled) { return; } $element.data('changed', false); diff --git a/src/index.js b/src/index.js index c7b36985..fe99561d 100644 --- a/src/index.js +++ b/src/index.js @@ -184,7 +184,8 @@ const isMarkedForDestroy = ($element) => { } const executeAllValidators = ($element, validators) => { - if ($element.data('changed') === false || $element.prop('disabled')) { + const element = $element[0] + if ($element.data('changed') === false || element.disabled) { return } diff --git a/vendor/assets/javascripts/rails.validations.js b/vendor/assets/javascripts/rails.validations.js index ebf191fe..2ce97c4b 100644 --- a/vendor/assets/javascripts/rails.validations.js +++ b/vendor/assets/javascripts/rails.validations.js @@ -677,7 +677,8 @@ return false; }; var executeAllValidators = function executeAllValidators($element, validators) { - if ($element.data('changed') === false || $element.prop('disabled')) { + var element = $element[0]; + if ($element.data('changed') === false || element.disabled) { return; } $element.data('changed', false);