Browse Source

:rotating_light:

Vanessa 1 year ago
parent
commit
70307c141b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/src/mobile/menu/search.ts
  2. 1 1
      app/src/protyle/render/av/select.ts

+ 1 - 1
app/src/mobile/menu/search.ts

@@ -618,7 +618,7 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
 
 export const popSearch = (app: App, searchConfig?: any) => {
     const config: Config.IUILayoutTabSearchConfig = JSON.parse(JSON.stringify(window.siyuan.storage[Constants.LOCAL_SEARCHDATA]));
-    const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString()
+    const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString();
     if (rangeText) {
         config.k = rangeText;
     }

+ 1 - 1
app/src/protyle/render/av/select.ts

@@ -63,7 +63,7 @@ export const removeCellOption = (protyle: IProtyle, cellElements: HTMLElement[],
     const doOperations: IOperation[] = [];
     const undoOperations: IOperation[] = [];
     let mSelectValue: IAVCellSelectValue[];
-    const avID =  blockElement.getAttribute("data-av-id")
+    const avID =  blockElement.getAttribute("data-av-id");
     cellElements.forEach((item, elementIndex) => {
         if (!blockElement.contains(item)) {
             const rowElement = hasClosestByClassName(item, "av__row");