mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-26 19:44:07 +03:00
281 added validity check to floating label conditions for number inputs
This commit is contained in:
parent
7882fddb29
commit
8a2322530d
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user