1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 00:45:50 +02:00
This commit is contained in:
syuilo
2018-02-23 05:43:19 +09:00
parent 54dc54f2ae
commit 28c9458b85
3 changed files with 6 additions and 2 deletions

View File

@@ -37,5 +37,6 @@ export default (os) => (opts) => {
vm.$once('cancel', recover);
vm.$once('post', recover);
document.body.appendChild(vm.$el);
(vm as any).focus();
}
};

View File

@@ -49,10 +49,13 @@ export default Vue.extend({
},
mounted() {
this.$nextTick(() => {
(this.$refs.text as any).focus();
this.focus();
});
},
methods: {
focus() {
(this.$refs.text as any).focus();
},
chooseFile() {
(this.$refs.file as any).click();
},