Skip to content

Commit 59c6ebc

Browse files
committed
fix(ui): trigger scrollTo on both create and update
1 parent b2477d9 commit 59c6ebc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/public/views/Logs/Details/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ const logDetailScreen = (model) => {
5050

5151
return h('', [
5252
h('h2.mv2', { onremove: () => model.logs.clearLogs() }, 'Log Tree'),
53-
h('.w-100.flex-column', { oncreate: () => scrollTo(`#post${id}`) }, tree(data.payload[0])),
53+
h('.w-100.flex-column', {
54+
oncreate: () => scrollTo(`#post${id}`),
55+
onupdate: () => scrollTo(`#post${id}`),
56+
}, tree(data.payload[0])),
5457
]);
5558
} else if (data.isFailure()) {
5659
return h('', [

0 commit comments

Comments
 (0)