Browse Source

fix: ensure scroll position on whiteboards tour

Konstantinos Kaloutas 2 years ago
parent
commit
022f990f2e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/onboarding/quick_tour.cljs

+ 2 - 1
src/main/frontend/components/onboarding/quick_tour.cljs

@@ -161,7 +161,8 @@
     :beforeShowPromise (fn []
                          (when-not (state/sub :ui/left-sidebar-open?)
                            (state/toggle-left-sidebar!))
-                         (wait-target ".nav-header .whiteboard" 500))
+                         (wait-target ".nav-header .whiteboard" 500)
+                         (util/scroll-to-top))
     :canClickTarget    true
     :buttons           [{:text "Next" :action (.-next jsTour)}]
     :popperOptions     {:modifiers [{:name    "preventOverflow"