From 5b554e5256b2e59043280185723fee54eca7745d Mon Sep 17 00:00:00 2001 From: AoiYamada <19519928+AoiYamada@users.noreply.github.com> Date: Tue, 15 Apr 2025 00:38:40 +0800 Subject: [PATCH] fix(templates): missing default value in select field (#11715) ### What? The default value is hardcoded instead of respecting the value filled in the form setting Fixes # pass it down from props Co-authored-by: Pan --- templates/website/src/blocks/Form/Select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/website/src/blocks/Form/Select/index.tsx b/templates/website/src/blocks/Form/Select/index.tsx index e6c159d73..30c0e8312 100644 --- a/templates/website/src/blocks/Form/Select/index.tsx +++ b/templates/website/src/blocks/Form/Select/index.tsx @@ -20,7 +20,7 @@ export const Select: React.FC< control: Control errors: Partial } -> = ({ name, control, errors, label, options, required, width }) => { +> = ({ name, control, errors, label, options, required, width, defaultValue }) => { return ( { const controlledValue = options.find((t) => t.value === value)