From 60f441a22ed98ed2c03f6179adf460d888bf459f Mon Sep 17 00:00:00 2001 From: Jonathan Garbee Date: Tue, 27 Jun 2017 17:19:00 -0400 Subject: [PATCH] Fix placeholder check for dirty state --- src/textfield/textfield.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/textfield/textfield.js b/src/textfield/textfield.js index 8261be74a..1ee036eb5 100644 --- a/src/textfield/textfield.js +++ b/src/textfield/textfield.js @@ -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 {