diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 51cd3b038f0..4968c43297c 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);