This commit is contained in:
David Langley 2025-05-08 00:12:25 +01:00
parent e66190304f
commit b83a86532b
2 changed files with 6 additions and 6 deletions

View File

@ -7,6 +7,7 @@ Please see LICENSE files in the repository root for full details.
import { Form } from "@vector-im/compound-web";
import React, { useRef, type JSX } from "react";
import { Virtuoso, VirtuosoHandle } from "react-virtuoso";
import { Flex } from "../../../utils/Flex";
import {
@ -19,7 +20,6 @@ import { ThreePidInviteTileView } from "./tiles/ThreePidInviteTileView";
import { MemberListHeaderView } from "./MemberListHeaderView";
import BaseCard from "../../right_panel/BaseCard";
import { _t } from "../../../../languageHandler";
import { Virtuoso, VirtuosoHandle } from "react-virtuoso";
interface IProps {
roomId: string;
@ -75,7 +75,7 @@ const MemberListView: React.FC<IProps> = (props: IProps) => {
}
}
},
[focusedIndex, ref, setFocusedIndex],
[focusedIndex, ref, setFocusedIndex, vm, totalRows],
);
const scrollerRef = React.useCallback(
@ -91,13 +91,13 @@ const MemberListView: React.FC<IProps> = (props: IProps) => {
);
const onFocus = (e: React.FocusEvent): void => {
let nextIndex = focusedIndex == -1 ? 0 : focusedIndex;
const nextIndex = focusedIndex == -1 ? 0 : focusedIndex;
scrollToIndex(nextIndex);
e.preventDefault();
};
function footer() {
return <div style={{ height: "32px" }}></div>;
function footer(): React.ReactNode {
return <div style={{ height: "32px" }} />;
}
return (

View File

@ -5,10 +5,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details.
*/
import classNames from "classnames";
import React, { type JSX } from "react";
import AccessibleButton from "../../../../elements/AccessibleButton";
import classNames from "classnames";
interface Props {
avatarJsx: JSX.Element;