Skip to content

fix(multiselect): show required validation message on deselect - #703

Merged
tumms2021389 merged 1 commit into
release/25from
fix/multiselect_required_validation
Nov 26, 2026
Merged

tumms2021389 merged 1 commit into
release/25from
fix/multiselect_required_validation

Conversation

@tumms2021389

Copy link
Copy Markdown
Collaborator

Deselecting the last item in a required Multiselect showed no error because no Pega validation ran, unlike Constellation.

  • Register Multiselect's selectionList in stateProps in the bridge (react_pconnect componentDidMount), as Constellation does. It is not @p annotated in the view metadata, so core never added it, and validation and clearErrorMessages could not resolve the property
  • Align Multiselect with dx-components MultiSelect: run updateReduxAndValidate (triggerFieldChange) after each select/deselect so required validation runs
  • Pass required, error and helperText (validatemessage) to the TextField so the field-level error is displayed

Deselecting the last item in a required Multiselect showed no error
because no Pega validation ran, unlike Constellation.

- Register Multiselect's selectionList in stateProps in the bridge
  (react_pconnect componentDidMount), as Constellation does. It is not
  @p annotated in the view metadata, so core never added it, and
  validation and clearErrorMessages could not resolve the property
- Align Multiselect with dx-components MultiSelect: run
  updateReduxAndValidate (triggerFieldChange) after each
  select/deselect so required validation runs
- Pass required, error and helperText (validatemessage) to the
  TextField so the field-level error is displayed
@tumms2021389 tumms2021389 self-assigned this Nov 26, 2026
@tumms2021389
tumms2021389 merged commit aa7188d into release/25 Nov 26, 2026
5 checks passed
@tumms2021389
tumms2021389 deleted the fix/multiselect_required_validation branch November 26, 2026 12:57
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.

2 participants