From 8a2322530dca010c2b62b68e8ca7100a016cefc9 Mon Sep 17 00:00:00 2001 From: Kyler Berry Date: Fri, 12 Dec 2014 11:41:16 -0500 Subject: [PATCH] 281 added validity check to floating label conditions for number inputs --- scripts/material.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/material.js b/scripts/material.js index 6755ddf5..79cc5d24 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -107,7 +107,7 @@ }) .on("keyup change", ".form-control", function() { var $this = $(this); - if($this.val() === "") { + if($this.val() === "" && $this[0].checkValidity()) { $this.addClass("empty"); } else { $this.removeClass("empty");