This commit is contained in:
Vanessa 2024-01-08 23:23:59 +08:00
parent 75a8ee13bd
commit 5f44965ef3
12 changed files with 28 additions and 28 deletions

View file

@ -161,7 +161,7 @@ export const showDiff = (app: App, data: { id: string, time: string }[]) => {
rightEditor = undefined;
}
});
dialog.element.setAttribute("data-key", Constants.DIALOG_HISTORYCOMPARE)
dialog.element.setAttribute("data-key", Constants.DIALOG_HISTORYCOMPARE);
dialog.element.addEventListener("click", (event) => {
if (typeof event.detail === "string") {
renderCompare(app, dialog.element.querySelector(".history__diff .b3-list-item--focus"));