editor focus
This commit is contained in:
parent
b413cc312d
commit
6f338806ed
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<form @submit.prevent="submit">
|
<form @submit.prevent="submit">
|
||||||
<div class="input-group shadow" role="group">
|
<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
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="btn btn-sm btn-outline-primary"
|
class="btn btn-sm btn-outline-primary"
|
||||||
@ -69,5 +69,8 @@ export default {
|
|||||||
this.$emit("cancel", { name: this.infobase_name });
|
this.$emit("cancel", { name: this.infobase_name });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$nextTick(() => this.$refs.input.focus());
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user