From 4f31068205257fd9dce98459423ae80d302639b1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 16 Sep 2024 23:32:06 +0800 Subject: [PATCH] :rotating_light: --- app/src/menus/protyle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 51cd3b038..4968c4329 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -1154,7 +1154,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme }); inputElement.addEventListener("blur", () => { if (inputElement.value === imgElement.style.width.replace("px", "")) { - return + return; } nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss")); updateTransaction(protyle, id, nodeElement.outerHTML, html); @@ -1217,7 +1217,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme }); inputElement.addEventListener("blur", () => { if (inputElement.value === imgElement.style.height.replace("px", "")) { - return + return; } nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss")); updateTransaction(protyle, id, nodeElement.outerHTML, html);