File tree 1 file changed +4
-2
lines changed
src/site/twitch.tv/modules/chat-input
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
<!-- eslint-disable prettier/prettier -->
14
14
<script setup lang="ts">
15
15
import { onUnmounted, ref, watch } from "vue";
16
- import { useMagicKeys } from "@vueuse/core";
16
+ import { useEventListener, useMagicKeys } from "@vueuse/core";
17
17
import { useStore } from "@/store/main";
18
18
import { REACT_TYPEOF_TOKEN } from "@/common/Constant";
19
19
import { imageHostToSrcset } from "@/common/Image";
@@ -428,7 +428,9 @@ function handleCapturedKeyDown(ev: KeyboardEvent) {
428
428
if (ev.key === "Enter") {
429
429
const { component } = props.instance;
430
430
const { componentRef } = component;
431
- const activeTray: Twitch.ChatTray = componentRef.props.tray;
431
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
432
+ const componentProps: any = componentRef.props;
433
+ const activeTray: Twitch.ChatTray = componentProps.tray;
432
434
const slate = componentRef.state?.slateEditor;
433
435
434
436
// Exit if autocomplete is not always on or anything needed is unavailable
You can’t perform that action at this time.
0 commit comments