diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-18 14:35:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-18 14:35:46 +0900 |
| commit | 16c36163b4eedabdba337697cc85c2e513eae439 (patch) | |
| tree | bb89dc415824f25010cdadb03977ba376f8c7c03 /src | |
| parent | Improve keyboard shortcut (diff) | |
| download | misskey-16c36163b4eedabdba337697cc85c2e513eae439.tar.gz misskey-16c36163b4eedabdba337697cc85c2e513eae439.tar.bz2 misskey-16c36163b4eedabdba337697cc85c2e513eae439.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/desktop/views/components/notes.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index 469f62c080..e6267ed204 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -10,7 +10,7 @@ </div> <!-- トランジションを有効にするとなぜかメモリリークする --> - <component :is="!$store.state.device.reduceMotion ? 'transition-group' : 'div'" name="mk-notes" class="notes transition" tag="div"> + <component :is="!$store.state.device.reduceMotion ? 'transition-group' : 'div'" name="mk-notes" class="notes transition" tag="div" ref="notes"> <template v-for="(note, i) in _notes"> <x-note :note="note" :key="note.id" @update:note="onNoteUpdated(i, $event)" ref="note"/> <p class="date" :key="note.id + '_date'" v-if="i != notes.length - 1 && note._date != _notes[i + 1]._date"> @@ -89,7 +89,7 @@ export default Vue.extend({ }, focus() { - (this.$refs.note as any)[0].focus(); + (this.$refs.notes as any).children[0].focus ? (this.$refs.notes as any).children[0].focus() : (this.$refs.notes as any).$el.children[0].focus(); }, onNoteUpdated(i, note) { |