Revert texfield changes Bug #137

This commit is contained in:
gerard 2018-06-21 09:17:39 +02:00
parent 7ceda630d4
commit 40a9833e3e
2 changed files with 0 additions and 24 deletions

View File

@ -42,22 +42,4 @@ vn-textfield {
.material-icons:hover {
color: rgba(0,0,0, .87);
}
& > div.container > div.textField > div.infix.invalid{
@extend div.selected;
& > span.mdl-textfield__error{
visibility: visible;
margin-top: 9px;
}
& > label{
color: #d50000;
}
}
.infix.invalid + .underline {
&{
background-color: #d50000;
}
}
}

View File

@ -21,13 +21,7 @@ export default class Textfield extends Input {
set value(value) {
this._value = (value === undefined || value === '') ? null : value;
this.input.value = this._value;
<<<<<<< HEAD
this.hasValue = this._value !== null;
if (this.hasValue) this.element.classList.add('not-empty');
else this.element.classList.remove('not-empty');
=======
this.hasValue = Boolean(this._value);
>>>>>>> parent of 97c994b... Bug #137 Refactorización Textfield
this.mdlUpdate();
}