Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 56b2f34

Browse files
committed
Fix user info
1 parent 7ac5665 commit 56b2f34

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/views/elements/AccessibleButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ const AccessibleButton = forwardRef(function <T extends keyof JSX.IntrinsicEleme
125125
onKeyDown,
126126
onKeyUp,
127127
triggerOnMouseDown,
128-
title,
129128
caption,
130129
...restProps
131130
}: Props<T>,
@@ -192,6 +191,7 @@ const AccessibleButton = forwardRef(function <T extends keyof JSX.IntrinsicEleme
192191
mx_AccessibleButton_disabled: disabled,
193192
});
194193

194+
const { title } = restProps;
195195
// React.createElement expects InputHTMLAttributes
196196
const button = React.createElement(element, newProps, children);
197197

test/components/views/right_panel/__snapshots__/UserInfo-test.tsx.snap

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ exports[`<UserInfo /> with crypto enabled renders <BasicUserInfo /> 1`] = `
8383
data-testid="base-card-close-button"
8484
role="button"
8585
tabindex="0"
86+
title="Close"
8687
/>
8788
<div
8889
class="mx_BaseCard_headerProp"

0 commit comments

Comments
 (0)