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:
Luke Barnard 2017-07-05 14:46:00 +01:00
parent 0af77e8913
commit 5c9d3edec4

View file

@ -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>;
}
}