mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
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:
1 parent
654465e4eb
commit
7e9604a254
1 file changed
+1
-1
@@ -100,7 +100,7 @@ export default function LogConsole(props) {
|
|||||||
<Paragraph code className="instance-console">
|
<Paragraph code className="instance-console">
|
||||||
{pastLines}
|
{pastLines}
|
||||||
{lines}
|
{lines}
|
||||||
<div className="scroll-anchor" ref={anchor} />
|
<div className="scroll-anchor" key="anchor" ref={anchor} />
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</>;
|
</>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user