diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-30 12:27:19 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-11-30 22:37:38 +0100 |
commit | a10fee3c09c268f0fd61a2f6ed03c6217934e383 (patch) | |
tree | 62eea513b1c8667e8f9b85c899a3b985f2191bb7 /app | |
parent | 31599ad91cd918a8d0cdb8afd1389c206fbc2a1a (diff) |
Scroll to detailed status when new ancestors get inserted
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/status/index.js b/app/javascript/flavours/glitch/features/status/index.js index a96c8a1b9..018b52f1b 100644 --- a/app/javascript/flavours/glitch/features/status/index.js +++ b/app/javascript/flavours/glitch/features/status/index.js @@ -376,7 +376,7 @@ export default class Status extends ImmutablePureComponent { } componentDidUpdate (prevProps) { - if (this.props.params.statusId !== prevProps.params.statusId && this.props.params.statusId) { + if (this.props.params.statusId && (this.props.params.statusId !== prevProps.params.statusId || prevProps.ancestorsIds.size < this.props.ancestorsIds.size)) { const { status, ancestorsIds } = this.props; if (status && ancestorsIds && ancestorsIds.size > 0) { |