diff --git a/src/client/components/autocomplete.vue b/src/client/components/autocomplete.vue index 5d6e363902..fb1eee5e4c 100644 --- a/src/client/components/autocomplete.vue +++ b/src/client/components/autocomplete.vue @@ -35,6 +35,7 @@ import { twemojiSvgBase } from '../../misc/twemoji-base'; import { getStaticImageUrl } from '@/scripts/get-static-image-url'; import MkUserSelect from './user-select.vue'; import { acct } from '../filters/user'; +import * as os from '@/os'; type EmojiDef = { emoji: string; @@ -74,7 +75,6 @@ for (const x of lib) { } emjdb.sort((a, b) => a.name.length - b.name.length); -import * as os from '@/os'; export default defineComponent({ props: { diff --git a/src/client/components/reaction-picker.vue b/src/client/components/reaction-picker.vue index 96549fd67a..587196f7bc 100644 --- a/src/client/components/reaction-picker.vue +++ b/src/client/components/reaction-picker.vue @@ -3,7 +3,7 @@
- + @@ -12,6 +12,7 @@ import { defineComponent } from 'vue'; import { emojiRegex } from '../../misc/emoji-regex'; import XReactionIcon from './reaction-icon.vue'; import * as os from '@/os'; +import { Autocomplete } from '@/scripts/autocomplete'; export default defineComponent({ components: { @@ -69,6 +70,8 @@ export default defineComponent({ mounted() { this.focus = 0; + + new Autocomplete(this.$refs.text, this, { model: 'text' }); }, methods: { diff --git a/src/client/default.vue b/src/client/default.vue index 9e2ed34876..269b52f5de 100644 --- a/src/client/default.vue +++ b/src/client/default.vue @@ -16,7 +16,7 @@