editor focus

This commit is contained in:
Dmitry Belyaev 2021-06-07 13:45:56 +03:00
parent b413cc312d
commit 6f338806ed
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -1,7 +1,7 @@
<template>
<form @submit.prevent="submit">
<div class="input-group shadow" role="group">
<input type="text" v-model="url" class="form-control" />
<input type="text" v-model="url" class="form-control" ref="input" />
<button
type="submit"
class="btn btn-sm btn-outline-primary"
@ -69,5 +69,8 @@ export default {
this.$emit("cancel", { name: this.infobase_name });
},
},
mounted() {
this.$nextTick(() => this.$refs.input.focus());
},
};
</script>