Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
bartekgatzcoder opened this issue Apr 10, 2025 · 0 comments
Assignees
Labels
needs-triage Issue that require triage

Comments

@bartekgatzcoder
Copy link
Contributor

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

@bartekgatzcoder bartekgatzcoder added the needs-triage Issue that require triage label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue that require triage
Projects
None yet
Development

No branches or pull requests

2 participants