Skip to content

Document select options_source behavior#1300

Merged
lovasoa merged 1 commit into
mainfrom
docs-options-source-select
Jun 8, 2026
Merged

Document select options_source behavior#1300
lovasoa merged 1 commit into
mainfrom
docs-options-source-select

Conversation

@lovasoa

@lovasoa lovasoa commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Document how options and options_source interact for select fields:

  • options are loaded first as initial options.
  • options_source search results are loaded into the same option list.
  • A remote result with the same value updates the existing option.
  • options_source results must contain exactly label and value.

The form documentation example now preloads an initial selected option while still using options_source for search.

Closes #1299

Validation

  • npm test -- --reporter=line -g "form select combines initial options"
  • npm run format

@lovasoa lovasoa linked an issue Jun 8, 2026 that may be closed by this pull request
@lovasoa lovasoa force-pushed the docs-options-source-select branch from ac18ec9 to 5e11a4e Compare June 8, 2026 10:45
@lovasoa lovasoa marked this pull request as ready for review June 8, 2026 10:47
@lovasoa lovasoa merged commit 1ffc6d8 into main Jun 8, 2026
51 checks passed
@lovasoa lovasoa deleted the docs-options-source-select branch June 8, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't set value of select type field in form for edit

1 participant