mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-04-22 10:02:11 +03:00
281 added validity check to floating label conditions for number inputs
This commit is contained in:
parent
e9a256d380
commit
03436e0901
|
@ -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