mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-22 17:47:11 +03:00
fix: Don't throw error if class is missing (fix #1254)
This commit is contained in:
parent
92b1fb1697
commit
c75f805a62
|
@ -314,15 +314,6 @@ const BaseInput = ($ => {
|
|||
} else if (this.$element.hasClass(requiredClass)) {
|
||||
found = true;
|
||||
}
|
||||
|
||||
// error if not found
|
||||
if (!found) {
|
||||
$.error(
|
||||
`${this.constructor.name} element: ${Util.describe(
|
||||
this.$element
|
||||
)} requires class: ${requiredClass}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user