Skip to content

Commit eaf91a4

Browse files
committed
Revert change for future fix
1 parent 55d7958 commit eaf91a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/site/twitch.tv/modules/chat-input/ChatInput.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!-- eslint-disable prettier/prettier -->
1414
<script setup lang="ts">
1515
import { onUnmounted, ref, watch } from "vue";
16-
import { useMagicKeys } from "@vueuse/core";
16+
import { useEventListener, useMagicKeys } from "@vueuse/core";
1717
import { useStore } from "@/store/main";
1818
import { REACT_TYPEOF_TOKEN } from "@/common/Constant";
1919
import { imageHostToSrcset } from "@/common/Image";
@@ -428,7 +428,9 @@ function handleCapturedKeyDown(ev: KeyboardEvent) {
428428
if (ev.key === "Enter") {
429429
const { component } = props.instance;
430430
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;
432434
const slate = componentRef.state?.slateEditor;
433435

434436
// Exit if autocomplete is not always on or anything needed is unavailable

0 commit comments

Comments
 (0)