mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Forward Modal: Fix selecting chat from keyboard
This commit is contained in:
parent
0c3c86ab55
commit
08b062e40d
@ -48,7 +48,10 @@ const ChatOrUserPicker: FC<OwnProps> = ({
|
||||
const lang = useLang();
|
||||
const [viewportIds, getMore] = useInfiniteScroll(loadMore, chatOrUserIds, Boolean(filter));
|
||||
|
||||
useInputFocusOnOpen(filterRef, isOpen, () => { onFilterChange(''); });
|
||||
const resetFilter = useCallback(() => {
|
||||
onFilterChange('');
|
||||
}, [onFilterChange]);
|
||||
useInputFocusOnOpen(filterRef, isOpen, resetFilter);
|
||||
|
||||
// eslint-disable-next-line no-null/no-null
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user