Skip to content

Commit 8a23225

Browse files
author
Kyler Berry
committed
281 added validity check to floating label conditions for number inputs
1 parent 7882fdd commit 8a23225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
})
108108
.on("keyup change", ".form-control", function() {
109109
var $this = $(this);
110-
if($this.val() === "") {
110+
if($this.val() === "" && $this[0].checkValidity()) {
111111
$this.addClass("empty");
112112
} else {
113113
$this.removeClass("empty");

0 commit comments

Comments
 (0)