Skip to content

Conversation

@Matthias-dmt
Copy link

Fixes #8275

Summary

  • Keep Select’s selected label visible even when the option is filtered out.
  • Add a regression test for label persistence during filtering.

Rationale

Select computes its display label from the filtered visibleOptions. When the selected option is not part of the filtered list, the label falls back to the placeholder and appears to disappear. This change resolves the selected label from the full options list (including option groups), so filtering no longer clears the displayed value.

Test

pnpm --filter primevue test:unit -- Select.spec.js

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.

the selected value fails to display correctly

1 participant