Try focus on username input on mount
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<seasoned-input
|
<seasoned-input
|
||||||
|
ref="username"
|
||||||
placeholder="username"
|
placeholder="username"
|
||||||
icon="Email"
|
icon="Email"
|
||||||
type="email"
|
type="email"
|
||||||
@@ -100,6 +101,11 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
try {
|
||||||
|
this.$refs.username.$el.getElementsByTagName("input")[0].focus();
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<seasoned-input
|
<seasoned-input
|
||||||
|
ref="username"
|
||||||
placeholder="username"
|
placeholder="username"
|
||||||
icon="Email"
|
icon="Email"
|
||||||
type="email"
|
type="email"
|
||||||
@@ -90,6 +91,11 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
document.title = "Sign in" + storage.pageTitlePostfix;
|
document.title = "Sign in" + storage.pageTitlePostfix;
|
||||||
storage.backTitle = document.title;
|
storage.backTitle = document.title;
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
try {
|
||||||
|
this.$refs.username.$el.getElementsByTagName("input")[0].focus();
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user