Browse Source

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

Vanessa 2 years ago
parent
commit
6000ef1c63
1 changed files with 2 additions and 1 deletions
  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");