mirror of
https://github.com/google/material-design-lite.git
synced 2024-08-17 00:00:24 +03:00
set is_dirty when placeholder exists
set is_dirty when placeholder exists
This commit is contained in:
parent
c5efd97980
commit
df6196d581
@ -175,7 +175,7 @@
|
||||
* @public
|
||||
*/
|
||||
MaterialTextfield.prototype.checkDirty = function() {
|
||||
if (this.input_.value && this.input_.value.length > 0) {
|
||||
if ((this.input_.value && this.input_.value.length > 0) || this.input_.placeholder) {
|
||||
this.element_.classList.add(this.CssClasses_.IS_DIRTY);
|
||||
} else {
|
||||
this.element_.classList.remove(this.CssClasses_.IS_DIRTY);
|
||||
|
Loading…
Reference in New Issue
Block a user