Fix room topic in-app links not being handled correctly on topic dialog (#12406)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-04-08 09:36:12 +01:00 committed by GitHub
parent b49c92c568
commit 156f2fa50a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,8 @@ export default function RoomTopic({ room, className, ...props }: IProps): JSX.El
<Linkify <Linkify
options={{ options={{
attributes: { attributes: {
onClick() { onClick(e: React.MouseEvent<HTMLDivElement>) {
onClick(e);
modal.close(); modal.close();
}, },
}, },