We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b848826 commit 60f441aCopy full SHA for 60f441a
1 file changed
src/textfield/textfield.js
@@ -175,10 +175,9 @@
175
* @public
176
*/
177
MaterialTextfield.prototype.checkDirty = function() {
178
- var placeholder = this.input_.placeholder;
179
if (
180
(this.input_.value && this.input_.value.length > 0) ||
181
- (placeholder !== undefined || placeholder.trim() !== "")
+ (this.input_.placeholder.trim() !== '')
182
) {
183
this.element_.classList.add(this.CssClasses_.IS_DIRTY);
184
} else {
0 commit comments