mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 23:04:52 +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">
|
||||
{pastLines}
|
||||
{lines}
|
||||
<div className="scroll-anchor" ref={anchor} />
|
||||
<div className="scroll-anchor" key="anchor" ref={anchor} />
|
||||
</Paragraph>
|
||||
</>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user