Fix LogConsole scroll anchor trasmutation

Fix react mutating the scroll anchor element in LogConsole into a log
line and breaking scroll anchoring to the bottom as a result.
This commit is contained in:
Hornwitser committed 2022-06-19 16:38:02 +02:00
1 parent 654465e4eb
commit 7e9604a254
1 file changed
+1 -1
@@ -100,7 +100,7 @@ export default function LogConsole(props) {
<Paragraph code className="instance-console">
{pastLines}
{lines}
<div className="scroll-anchor" ref={anchor} />
<div className="scroll-anchor" key="anchor" ref={anchor} />
</Paragraph>
</>;
}