281 added validity check to floating label conditions for number inputs

This commit is contained in:
Kyler Berry 2014-12-12 11:41:16 -05:00
parent 7882fddb29
commit 8a2322530d

View File

@ -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");