mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-23 10:04:04 +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() {
|
.on("keyup change", ".form-control", function() {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
if($this.val() === "") {
|
if($this.val() === "" && $this[0].checkValidity()) {
|
||||||
$this.addClass("empty");
|
$this.addClass("empty");
|
||||||
} else {
|
} else {
|
||||||
$this.removeClass("empty");
|
$this.removeClass("empty");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user