Skip to content

bug: Preset does not indicate the selected option with multi-select (radiobutton) parameters #17333

Open
@bartekgatzcoder

Description

@bartekgatzcoder

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If the preset is configured to include an option for a single-select (radio-button-based) parameter, the selection is not represented on the screen in case the preset is selected.

Relevant Log Output

Expected Behavior

  • Upon selection of the preset the radiobutton for Region is set to the right region, while the selection of regions remains "read only".
  • Upon the unselection of the preset the last selected Preset setting stays for Region.

Steps to Reproduce

  1. Open this template: https://dev.coder.com/templates/coder/coder-copy-bartek/workspace?version=f277c5a9-1e43-41fa-a49e-524a53d37be0
  2. Start workspace creation
  3. Select the preset with "... EU" in name. Expected behavior: German region is preselected.
  4. Make sure you toggle the "hide params" switch to see the params
  5. See that there is no radio button selected.
  6. Change to preset "... US". Expected behavior: US region is selected.
  7. Observe no radio buttons.
  8. Remote the preset
  9. Observe the selection of region not being seen.

Environment

  • Host OS:
  • Coder version:

Additional Context

No response

Metadata

Metadata

Assignees

Labels

s3Bugs that confuse, annoy, or are purely cosmetic

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions