From 28c9458b85b5c8ba38029622484dff00d3283e55 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 23 Feb 2018 05:43:19 +0900 Subject: [PATCH] :v: --- .../app/common/views/components/messaging-room.message.vue | 2 +- src/web/app/mobile/api/post.ts | 1 + src/web/app/mobile/views/components/post-form.vue | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/web/app/common/views/components/messaging-room.message.vue b/src/web/app/common/views/components/messaging-room.message.vue index 2464eceb7..ae4075bef 100644 --- a/src/web/app/common/views/components/messaging-room.message.vue +++ b/src/web/app/common/views/components/messaging-room.message.vue @@ -224,7 +224,7 @@ export default Vue.extend({ > p.is-deleted color rgba(255, 255, 255, 0.5) - > .text + > .text >>> &, * color #fff !important diff --git a/src/web/app/mobile/api/post.ts b/src/web/app/mobile/api/post.ts index 3b14e0c1d..09bb9dc06 100644 --- a/src/web/app/mobile/api/post.ts +++ b/src/web/app/mobile/api/post.ts @@ -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(); } }; diff --git a/src/web/app/mobile/views/components/post-form.vue b/src/web/app/mobile/views/components/post-form.vue index 3e8206c92..7a6eb7741 100644 --- a/src/web/app/mobile/views/components/post-form.vue +++ b/src/web/app/mobile/views/components/post-form.vue @@ -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(); },