Quellcode durchsuchen

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

Vanessa vor 2 Jahren
Ursprung
Commit
6000ef1c63
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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");