trigger login when press enter in password textbox
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
:placeholder="$t('Your password')"
|
||||
:value="password"
|
||||
@input="password = $event.target.value; tempToken = ''"
|
||||
@keyup.enter.native="loginByPressEnter"
|
||||
></f7-list-input>
|
||||
</f7-list>
|
||||
<f7-list>
|
||||
@@ -201,6 +202,16 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
loginByPressEnter() {
|
||||
const app = this.$f7;
|
||||
const $$ = app.$;
|
||||
|
||||
if ($$('.modal-in').length) {
|
||||
return;
|
||||
}
|
||||
|
||||
return this.login();
|
||||
},
|
||||
verify() {
|
||||
const self = this;
|
||||
const router = self.$f7router;
|
||||
|
||||
Reference in New Issue
Block a user