mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🚨
This commit is contained in:
@@ -13,7 +13,6 @@ import {showMessage} from "../../dialog/message";
|
||||
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
||||
import {mountHelp, newNotebook} from "../../util/mount";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {isNotCtrl, isOnlyMeta, setStorageVal, updateHotkeyAfterTip} from "../../protyle/util/compatibility";
|
||||
import {openFileById} from "../../editor/util";
|
||||
import {
|
||||
|
||||
@@ -9,7 +9,6 @@ import {genUUID} from "../../util/genID";
|
||||
import {openMobileFileById} from "../editor";
|
||||
import {unicode2Emoji} from "../../emoji";
|
||||
import {mountHelp, newNotebook} from "../../util/mount";
|
||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
||||
import {newFile} from "../../util/newFile";
|
||||
import {MenuItem} from "../../menus/Menu";
|
||||
import {App} from "../../index";
|
||||
|
||||
@@ -154,7 +154,7 @@ const afterRenderGallery = (options: ITableOptions) => {
|
||||
if (typeof options.resetData.oldOffset === "number") {
|
||||
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);
|
||||
options.blockElement.removeAttribute("data-need-focus");
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ const renderGroupTable = (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);
|
||||
options.blockElement.removeAttribute("data-need-focus");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user