Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: handle empty strings for Select component#18553

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jaaydenh merged 2 commits intomainfromjaaydenh/select-empty-string-fix
Jun 24, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenhjaaydenh commentedJun 24, 2025
edited
Loading

resolve#18361

Its possible for a dynamic parameter option value to be an empty string which will cause the following error in the Radix Select component. The solution is to handle empty strings so that they are not set directly in the component.

Uncaught Error: A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.

data "coder_parameter" "radio" {  name         = "radio"  display_name = "An example of a radio input"  description  = "The next parameter supports a single value."  type         = "string"  form_type    = "dropdown"  order        = 1  default      = ""  option {    name = "Empty"    value = ""   }}

@jaaydenhjaaydenh self-assigned thisJun 24, 2025
@jaaydenhjaaydenh merged commit25f1b76 intomainJun 24, 2025
35 checks passed
@jaaydenhjaaydenh deleted the jaaydenh/select-empty-string-fix branchJune 24, 2025 20:44
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@brettkolodnybrettkolodnybrettkolodny approved these changes

Assignees

@jaaydenhjaaydenh

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Empty value for options in Dynamic parameters crashes the form
2 participants
@jaaydenh@brettkolodny

[8]ページ先頭

©2009-2025 Movatter.jp