mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Revert #1170, fde7d5eaf49413fc8442ca53dfd49a01233ed177
There were a few issues with this, namely that links were no longer linkified and an error was logged to the console: `Warning: Stateless function components cannot be given refs (See ref "topic" in EmojiText created by RoomHeader). Attempts to access this ref will fail.`
This commit is contained in:
parent
0af77e8913
commit
5c9d3edec4
@ -251,7 +251,7 @@ module.exports = React.createClass({
|
||||
}
|
||||
if (topic) {
|
||||
topicElement =
|
||||
<EmojiText dir="auto" element="div" className="mx_RoomHeader_topic" ref="topic" title={topic}>{ topic }</EmojiText>;
|
||||
<div className="mx_RoomHeader_topic" ref="topic" title={ topic } dir="auto">{ topic }</div>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user