Browse Source

:bug: 移动端书签点击聚焦和退出聚焦

Vanessa 2 năm trước cách đây
mục cha
commit
6000ef1c63
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/src/menus/protyle.ts

+ 2 - 1
app/src/menus/protyle.ts

@@ -450,7 +450,8 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
         if (isPushBack) {
             pushBack();
         }
-    } else if (protyle.breadcrumb) {
+    }
+    if (protyle.breadcrumb) {
         const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
         if (id === protyle.block.rootID) {
             exitFocusElement.classList.add("fn__none");