This commit is contained in:
Vanessa 2025-09-13 09:15:54 +08:00
parent b70328c7e7
commit 41f72e65d3
4 changed files with 2 additions and 4 deletions

View file

@ -13,7 +13,6 @@ import {showMessage} from "../../dialog/message";
import {fetchPost, fetchSyncPost} from "../../util/fetch"; import {fetchPost, fetchSyncPost} from "../../util/fetch";
import {openEmojiPanel, unicode2Emoji} from "../../emoji"; import {openEmojiPanel, unicode2Emoji} from "../../emoji";
import {mountHelp, newNotebook} from "../../util/mount"; import {mountHelp, newNotebook} from "../../util/mount";
import {confirmDialog} from "../../dialog/confirmDialog";
import {isNotCtrl, isOnlyMeta, setStorageVal, updateHotkeyAfterTip} from "../../protyle/util/compatibility"; import {isNotCtrl, isOnlyMeta, setStorageVal, updateHotkeyAfterTip} from "../../protyle/util/compatibility";
import {openFileById} from "../../editor/util"; import {openFileById} from "../../editor/util";
import { import {

View file

@ -9,7 +9,6 @@ import {genUUID} from "../../util/genID";
import {openMobileFileById} from "../editor"; import {openMobileFileById} from "../editor";
import {unicode2Emoji} from "../../emoji"; import {unicode2Emoji} from "../../emoji";
import {mountHelp, newNotebook} from "../../util/mount"; import {mountHelp, newNotebook} from "../../util/mount";
import {confirmDialog} from "../../dialog/confirmDialog";
import {newFile} from "../../util/newFile"; import {newFile} from "../../util/newFile";
import {MenuItem} from "../../menus/Menu"; import {MenuItem} from "../../menus/Menu";
import {App} from "../../index"; import {App} from "../../index";

View file

@ -154,7 +154,7 @@ const afterRenderGallery = (options: ITableOptions) => {
if (typeof options.resetData.oldOffset === "number") { if (typeof options.resetData.oldOffset === "number") {
options.protyle.contentElement.scrollTop = options.resetData.oldOffset; options.protyle.contentElement.scrollTop = options.resetData.oldOffset;
} }
if (options.blockElement.getAttribute("data-need-focus") === 'true') { if (options.blockElement.getAttribute("data-need-focus") === "true") {
focusBlock(options.blockElement); focusBlock(options.blockElement);
options.blockElement.removeAttribute("data-need-focus"); options.blockElement.removeAttribute("data-need-focus");
} }

View file

@ -282,7 +282,7 @@ const renderGroupTable = (options: ITableOptions) => {
}; };
const afterRenderTable = (options: ITableOptions) => { const afterRenderTable = (options: ITableOptions) => {
if (options.blockElement.getAttribute("data-need-focus") === 'true') { if (options.blockElement.getAttribute("data-need-focus") === "true") {
focusBlock(options.blockElement); focusBlock(options.blockElement);
options.blockElement.removeAttribute("data-need-focus"); options.blockElement.removeAttribute("data-need-focus");
} }