Fix placeholder check for dirty state

master
Jonathan Garbee 2017-06-27 17:19:00 -04:00
parent b84882629c
commit 60f441a22e
1 changed files with 1 additions and 2 deletions

View File

@ -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 {