mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Variables with defaults showed the default as placeholder text in an empty field. If the user did not type anything, an empty value was sent instead of the default. Now the default pre-populates the field value so it is visible and editable. Fixes both `BaseTemplateParametersStep` and `ModuleSettingsStep` by falling back to `defaultPlaceholder(v.default)` instead of `""` when no user value exists. Fixes DEVEX-584 > [!NOTE] > This PR was authored by Coder Agents on behalf of @jeremyruppel.