Use forwardRef in Avatar components to allow use with Compound Tooltips (#12063)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
3acd648ed3
commit
22c511414b
3 changed files with 22 additions and 24 deletions
|
@ -21,7 +21,7 @@ import { logger } from "matrix-js-sdk/src/logger";
|
|||
|
||||
import NodeAnimator from "../../../NodeAnimator";
|
||||
import { toPx } from "../../../utils/units";
|
||||
import { LegacyMemberAvatar as MemberAvatar } from "../avatars/MemberAvatar";
|
||||
import MemberAvatar from "../avatars/MemberAvatar";
|
||||
import { READ_AVATAR_SIZE } from "./ReadReceiptGroup";
|
||||
|
||||
export interface IReadReceiptInfo {
|
||||
|
@ -216,7 +216,7 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
|
|||
aria-live="off"
|
||||
size="14px"
|
||||
style={style}
|
||||
inputRef={this.avatar as RefObject<HTMLImageElement>}
|
||||
ref={this.avatar}
|
||||
hideTitle
|
||||
tabIndex={-1}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue