Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(textarea): add missing scrollerRef prop type to TextareaInputFieldProps

Hampus Krafta3d59b32ecd3
diff --git a/fluxer_app/src/components/channel/textarea/TextareaInputField.tsx b/fluxer_app/src/components/channel/textarea/TextareaInputField.tsx
index 394cb68ed..3ac299691 100644
--- a/fluxer_app/src/components/channel/textarea/TextareaInputField.tsx
+++ b/fluxer_app/src/components/channel/textarea/TextareaInputField.tsx
@@ -21,6 +21,7 @@ import {clsx} from 'clsx';
import React from 'react';
import * as HighlightActionCreators from '~/actions/HighlightActionCreators';
import {type AutocompleteOption, isChannel} from '~/components/channel/Autocomplete';
+import type {ScrollerHandle} from '~/components/uikit/Scroller';
import {useTextareaAutofocus} from '~/hooks/useTextareaAutofocus';
import {TextareaAutosize} from '~/lib/TextareaAutosize';
import styles from './TextareaInput.module.css';
@@ -33,6 +34,7 @@ interface TextareaInputFieldProps {
value: string;
placeholder: string;
textareaRef: React.RefObject<HTMLTextAreaElement | null>;
+ scrollerRef?: React.RefObject<ScrollerHandle | null>;
shouldStickToBottomRef?: React.MutableRefObject<boolean>;
isFocused?: boolean;
isAutocompleteAttached: boolean;