diff --git a/scripts/material.js b/scripts/material.js index 93123768..615c365d 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -111,7 +111,7 @@ }) .on("keyup change", ".form-control", function() { var $this = $(this); - if($this.val() === "" && $this[0].checkValidity()) { + if ($this.val() === "" && (typeof $this[0].checkValidity != "undefined" && $this[0].checkValidity())) { $this.addClass("empty"); } else { $this.removeClass("empty");