Fix up arrow on non-empty editor

This commit is contained in:
Jamie Kyle 2024-03-13 11:00:41 -07:00 committed by GitHub
parent 1823f7eca9
commit 44a8049e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -114,7 +114,7 @@ export type Props = Readonly<{
sortedGroupMembers: ReadonlyArray<ConversationType> | null; sortedGroupMembers: ReadonlyArray<ConversationType> | null;
scrollerRef?: React.RefObject<HTMLDivElement>; scrollerRef?: React.RefObject<HTMLDivElement>;
onDirtyChange?(dirty: boolean): unknown; onDirtyChange?(dirty: boolean): unknown;
onEditorStateChange?(options: { onEditorStateChange(options: {
bodyRanges: DraftBodyRanges; bodyRanges: DraftBodyRanges;
caretLocation?: number; caretLocation?: number;
conversationId: string | undefined; conversationId: string | undefined;

View file

@ -221,6 +221,7 @@ export function SmartCompositionArea({ id }: { id: string }): JSX.Element {
useGlobalModalActions(); useGlobalModalActions();
const { clearInstalledStickerPack } = useStickersActions(); const { clearInstalledStickerPack } = useStickersActions();
const { showToast } = useToastActions(); const { showToast } = useToastActions();
const { onEditorStateChange } = useComposerActions();
return ( return (
<CompositionArea <CompositionArea
@ -243,6 +244,7 @@ export function SmartCompositionArea({ id }: { id: string }): JSX.Element {
pushPanelForConversation={pushPanelForConversation} pushPanelForConversation={pushPanelForConversation}
discardEditMessage={discardEditMessage} discardEditMessage={discardEditMessage}
onCloseLinkPreview={onCloseLinkPreview} onCloseLinkPreview={onCloseLinkPreview}
onEditorStateChange={onEditorStateChange}
// AudioCapture // AudioCapture
errorDialogAudioRecorderType={errorDialogAudioRecorderType ?? null} errorDialogAudioRecorderType={errorDialogAudioRecorderType ?? null}
recordingState={recordingState} recordingState={recordingState}