Revert texfield changes Bug #137
This commit is contained in:
parent
7ceda630d4
commit
40a9833e3e
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue