mirror of
https://github.com/google/material-design-lite.git
synced 2024-10-05 16:27:46 +03:00
Fix placeholder check for dirty state
This commit is contained in:
parent
b84882629c
commit
60f441a22e
@ -175,10 +175,9 @@
|
||||
* @public
|
||||
*/
|
||||
MaterialTextfield.prototype.checkDirty = function() {
|
||||
var placeholder = this.input_.placeholder;
|
||||
if (
|
||||
(this.input_.value && this.input_.value.length > 0) ||
|
||||
(placeholder !== undefined || placeholder.trim() !== "")
|
||||
(this.input_.placeholder.trim() !== '')
|
||||
) {
|
||||
this.element_.classList.add(this.CssClasses_.IS_DIRTY);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user