Skip to content

Fix #130: Incorrect validation of initial_options for OptionGroup#131

Open
nickovs wants to merge 1 commit intoimryche:masterfrom
nickovs:fix-multiselect-groups-inital-options
Open

Fix #130: Incorrect validation of initial_options for OptionGroup#131
nickovs wants to merge 1 commit intoimryche:masterfrom
nickovs:fix-multiselect-groups-inital-options

Conversation

@nickovs
Copy link
Copy Markdown

@nickovs nickovs commented Apr 22, 2026

The initial_option field of a StaticSelect should be single option even when the menu contains OptionGroups. This PR fixes the validator and fixes the broken tests that let the old validator pass.

The fix also applies to the validation of MultiStaticSelect and the tests of that are fixes as well.

…oup entries.

The `initial_option` [field](https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element#fields) of a `StaticSelect` should single option even when the menu contains `OptionGroup`s. This PR fixes the validator and fixes the broken tests that let the old validator pass.

The fix also applies to the validation of `MultiStaticSelect` and the tests of that are fixes as well.
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.

1 participant