From 76b7dcba77e0f7809483921eb0ac542dddc9f3c9 Mon Sep 17 00:00:00 2001 From: mizoo-snow21 Date: Sun, 29 Jun 2025 23:45:28 +0900 Subject: [PATCH] refactor(markdown-blocks/form): remove commented code related to hidden input handling --- web/app/components/base/markdown-blocks/form.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/app/components/base/markdown-blocks/form.tsx b/web/app/components/base/markdown-blocks/form.tsx index 02bd765a1d..413ba277df 100644 --- a/web/app/components/base/markdown-blocks/form.tsx +++ b/web/app/components/base/markdown-blocks/form.tsx @@ -39,7 +39,6 @@ const MarkdownForm = ({ node }: any) => { const initialValues: { [key: string]: any } = {} node.children.forEach((child: any) => { if ([SUPPORTED_TAGS.INPUT, SUPPORTED_TAGS.TEXTAREA].includes(child.tagName)) { - // Always set initial value for hidden inputs if (child.tagName === SUPPORTED_TAGS.INPUT && child.properties.type === SUPPORTED_TYPES.HIDDEN) { initialValues[child.properties.name] = child.properties.value || '' } else { @@ -188,7 +187,6 @@ const MarkdownForm = ({ node }: any) => { } if (child.properties.type === SUPPORTED_TYPES.HIDDEN) { - // Hidden input is not displayed but maintains form value return (