Skip to content

Dynamic defaults seem to not update on Multi-select in coder/coder #753

@stirby

Description

@stirby

When I use the following parameters in coder/coder, the dynamic defaults I have configured for multi-select seem to not update properly. I have defaults for mult-select configured in locals, but changing the parameter git_repo to coder/ai-models does not change the defaults in ides.

Here's the playground: https://playground.coder.app/parameters/xDLh4wNOJd

Here's the tempalte: https://dev.coder.com/templates/coder/schedule-dogfooding/docs

In this recording you can see that the defaults don't update.
https://www.loom.com/share/85b904d1b02a4f92b1a80321095c26d5?sid=9a869e50-7c5e-4d1d-9d8d-6878d4deeff7

Discussed during check-in: if the form rerenders the UI state might reflect stale values in the dropdown; however the form state (the output) will correctly update to the selected value.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions