Browse Source

fix: not scroll to top when open in the right sidebar

Tienson Qin 3 years ago
parent
commit
db90f5f0af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/state.cljs

+ 1 - 1
src/main/frontend/state.cljs

@@ -1006,7 +1006,7 @@ Similar to re-frame subscriptions"
                                             (cons [repo db-id block-type])
                                             (cons [repo db-id block-type])
                                             (distinct))))
                                             (distinct))))
       (open-right-sidebar!)
       (open-right-sidebar!)
-      (when-let [elem (gdom/getElementByClass "cp__right-sidebar-scrollable")]
+      (when-let [elem (gdom/getElementByClass "sidebar-item-list")]
         (util/scroll-to elem 0)))))
         (util/scroll-to elem 0)))))
 
 
 (defn sidebar-remove-block!
 (defn sidebar-remove-block!