Fix placeholder check for dirty state
parent
b84882629c
commit
60f441a22e
|
@ -175,10 +175,9 @@
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
MaterialTextfield.prototype.checkDirty = function() {
|
MaterialTextfield.prototype.checkDirty = function() {
|
||||||
var placeholder = this.input_.placeholder;
|
|
||||||
if (
|
if (
|
||||||
(this.input_.value && this.input_.value.length > 0) ||
|
(this.input_.value && this.input_.value.length > 0) ||
|
||||||
(placeholder !== undefined || placeholder.trim() !== "")
|
(this.input_.placeholder.trim() !== '')
|
||||||
) {
|
) {
|
||||||
this.element_.classList.add(this.CssClasses_.IS_DIRTY);
|
this.element_.classList.add(this.CssClasses_.IS_DIRTY);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue