diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-21 17:39:23 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-21 17:39:23 +0900 |
| commit | b44afc1876d297bf3bc3a307145bf69f0c852d18 (patch) | |
| tree | cf43b4704fcc536956723f4486f40bca6ec77cc4 /src/client/app | |
| parent | 11.18.0 (diff) | |
| download | sharkey-b44afc1876d297bf3bc3a307145bf69f0c852d18.tar.gz sharkey-b44afc1876d297bf3bc3a307145bf69f0c852d18.tar.bz2 sharkey-b44afc1876d297bf3bc3a307145bf69f0c852d18.zip | |
iOSで投稿フォームに自動フォーカスしない問題を修正
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/mobile/script.ts | 12 | ||||
| -rw-r--r-- | src/client/app/mobile/views/components/post-form.vue | 3 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/client/app/mobile/script.ts b/src/client/app/mobile/script.ts index d33bafbb0f..7a80f21759 100644 --- a/src/client/app/mobile/script.ts +++ b/src/client/app/mobile/script.ts @@ -25,6 +25,7 @@ import MkShare from '../common/views/pages/share.vue'; import MkFollow from '../common/views/pages/follow.vue'; import MkNotFound from '../common/views/pages/not-found.vue'; import DeckColumn from '../common/views/deck/deck.column-template.vue'; +import PostFormDialog from './views/components/post-form-dialog.vue'; import FileChooser from './views/components/drive-file-chooser.vue'; import FolderChooser from './views/components/drive-folder-chooser.vue'; @@ -50,16 +51,15 @@ init((launch, os) => { document.documentElement.style.overflow = 'auto'; } - this.$root.newAsync(() => import('./views/components/post-form-dialog.vue').then(m => m.default), { + const vm = this.$root.new(PostFormDialog, { reply: o.reply, mention: o.mention, renote: o.renote - }).then(vm => { - vm.$once('cancel', recover); - vm.$once('posted', recover); - if (o.cb) vm.$once('closed', o.cb); - (vm as any).focus(); }); + vm.$once('cancel', recover); + vm.$once('posted', recover); + if (o.cb) vm.$once('closed', o.cb); + (vm as any).focus(); }, $chooseDriveFile(opts) { diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index 815122b28e..85246036a2 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -59,12 +59,11 @@ import { erase, unique } from '../../../../../prelude/array'; import { length } from 'stringz'; import { toASCII } from 'punycode'; import extractMentions from '../../../../../misc/extract-mentions'; -import XPostFormAttaches from '../../../common/views/components/post-form-attaches.vue'; export default Vue.extend({ i18n: i18n('mobile/views/components/post-form.vue'), components: { - XPostFormAttaches, + XPostFormAttaches: () => import('../../../common/views/components/post-form-attaches.vue').then(m => m.default), XPollEditor: () => import('../../../common/views/components/poll-editor.vue').then(m => m.default) }, |