Skip to content

Commit

Permalink
Merge pull request #3 from derivita/ehalsmer/modify-textfield-fix
Browse files Browse the repository at this point in the history
Modify textfield fix to remove ?
  • Loading branch information
ehalsmer committed Jul 9, 2024
2 parents 650a98e + c56ec3c commit d96333c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textfield/textfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
MaterialTextfield.prototype.checkDirty = function() {
if (
(this.input_.value && this.input_.value.length > 0) ||
(this.input_.placeholder?.trim())
(this.input_.placeholder && this.input_.placeholder.trim())
) {
this.element_.classList.add(this.CssClasses_.IS_DIRTY);
} else {
Expand Down

0 comments on commit d96333c

Please sign in to comment.