Scroll to top on DOM re-render
This commit is contained in:
parent
4063d48e2b
commit
2b5aef4215
@ -163,6 +163,7 @@
|
||||
[$sidebar-dom]
|
||||
(let [$container (dom/getElement "sidebarContent")]
|
||||
(dom/removeChildren $container)
|
||||
(.scrollTo js/window 0 0)
|
||||
(if (seqable? $sidebar-dom)
|
||||
(apply dom/append $container $sidebar-dom)
|
||||
(dom/append $container $sidebar-dom))))
|
||||
|
Loading…
Reference in New Issue
Block a user