Vanessa 2024-04-08 12:05:27 +08:00
parent 6ca9dedd70
commit dc5882bd60
7 changed files with 62 additions and 19 deletions

View file

@ -14,6 +14,7 @@ import {MobileCustom} from "../mobile/dock/MobileCustom";
import {hasClosestByAttribute} from "../protyle/util/hasClosest";
import {BlockPanel} from "../block/Panel";
import {Setting} from "./Setting";
import {clearOBG} from "../layout/dock/util";
export class Plugin {
private app: App;
@ -268,6 +269,7 @@ export class Plugin {
update: options.update,
});
customObj.element.addEventListener("click", () => {
clearOBG();
setPanelFocus(customObj.element.parentElement.parentElement);
});
return customObj;