Issue #8: Done.
This commit is contained in:
@@ -78,7 +78,7 @@ export default {
|
|||||||
* if input no value , disabled.
|
* if input no value , disabled.
|
||||||
*/
|
*/
|
||||||
isDisabledButton() {
|
isDisabledButton() {
|
||||||
let inputAreSpaces = this.auth.username === '' || this.auth.password === '';
|
let inputAreSpaces = this.auth.username === '' || this.auth.password === '' || this.isInvalid === true;
|
||||||
return this.isDisabled = inputAreSpaces ? true : false;
|
return this.isDisabled = inputAreSpaces ? true : false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
changeHandler(event) {
|
changeHandler(event) {
|
||||||
let inputValue = event.target.value;
|
let inputValue = event.target.value;
|
||||||
if(inputValue !== '')this.isInvalid = false;
|
if(inputValue !== '') this.isInvalid = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user