瀏覽代碼

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

Tienson Qin 3 年之前
父節點
當前提交
db90f5f0af
共有 1 個文件被更改,包括 1 次插入1 次删除
  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])
                                             (distinct))))
       (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)))))
 
 (defn sidebar-remove-block!