We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6844eba commit fe1b315Copy full SHA for fe1b315
src/serial/XTerm.tsx
@@ -47,7 +47,6 @@ const useManagedTermimal = (
47
tabOutRef: HTMLElement,
48
fontSizePt: number
49
): void => {
50
- const parent = ref.current;
51
const actionFeedback = useActionFeedback();
52
const codeFontFamily = useToken("fonts", "code");
53
const device = useDevice();
@@ -58,6 +57,7 @@ const useManagedTermimal = (
58
57
const initialFontSizeRef = useRef<number>(fontSizePt);
59
60
useEffect(() => {
+ const parent = ref.current;
61
if (!parent) {
62
return;
63
}
@@ -188,11 +188,11 @@ const useManagedTermimal = (
188
currentTerminalRef,
189
device,
190
isUnmounted,
191
- parent,
192
setSelection,
193
fitAddon,
194
initialFontSizeRef,
195
tabOutRef,
+ ref,
196
]);
197
198
0 commit comments