set is_dirty when placeholder exists

set is_dirty when placeholder exists
master
harleyb16 2017-05-17 14:35:35 -06:00 committed by Jonathan Garbee
parent c5efd97980
commit df6196d581
1 changed files with 1 additions and 1 deletions

View File

@ -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);