mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix render loop in <Modal>, clean up ref merger code
This commit is contained in:
@@ -62,7 +62,7 @@ import {
|
||||
ConversationColorType,
|
||||
CustomColorType,
|
||||
} from '../../types/Colors';
|
||||
import { createRefMerger } from '../_util';
|
||||
import { createRefMerger } from '../../util/refMerger';
|
||||
import { emojiToData } from '../emoji/lib';
|
||||
import type { SmartReactionPicker } from '../../state/smart/ReactionPicker';
|
||||
import { getCustomColorStyle } from '../../util/getCustomColorStyle';
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ import Measure, { MeasuredComponentProps } from 'react-measure';
|
||||
import { LocalizerType } from '../../../../types/Util';
|
||||
import { assert } from '../../../../util/assert';
|
||||
import { getOwn } from '../../../../util/getOwn';
|
||||
import { multiRef } from '../../../../util/multiRef';
|
||||
import { refMerger } from '../../../../util/refMerger';
|
||||
import { useRestoreFocus } from '../../../../hooks/useRestoreFocus';
|
||||
import { missingCaseError } from '../../../../util/missingCaseError';
|
||||
import { filterAndSortConversationsByTitle } from '../../../../util/filterAndSortConversations';
|
||||
@@ -146,7 +146,7 @@ export const ChooseGroupMembersModal: FunctionComponent<PropsType> = ({
|
||||
confirmAdds();
|
||||
}
|
||||
}}
|
||||
ref={multiRef<HTMLInputElement>(inputRef, focusRef)}
|
||||
ref={refMerger<HTMLInputElement>(inputRef, focusRef)}
|
||||
value={searchTerm}
|
||||
/>
|
||||
{Boolean(selectedContacts.length) && (
|
||||
|
||||
Reference in New Issue
Block a user