Skip to content

fix(#212): autocomplete optionLabel for string values correctly displayed - #1390

Open
gianluca-moro wants to merge 1 commit into
openng-org:mainfrom
gianluca-moro:fix/212/autocomplete-optionLabel
Open

fix(#212): autocomplete optionLabel for string values correctly displayed#1390
gianluca-moro wants to merge 1 commit into
openng-org:mainfrom
gianluca-moro:fix/212/autocomplete-optionLabel

Conversation

@gianluca-moro

@gianluca-moro gianluca-moro commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

Correctly displays the optionLabel even if options are strings instead of just displaying the option itself.

Related issues

Fixes #212

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes the public API)
  • Documentation only
  • Refactor, test, or chore (no user-facing change)

Breaking changes

None

Test plan

  • npm run build
  • npm test
  • npm run lint
  • Verified in the demo app (if applicable)

Checklist

  • Issue discussed or bug clearly described (link issue when applicable)
  • Tests added or updated for behavioral changes
  • Documentation updated (README, JSDoc, migration notes as needed)
  • Public API changes documented; breaking changes called out
  • CHANGELOG updated (if the repository maintains one and the change is user-facing)
  • Commit messages follow Conventional Commits
  • I agree to follow the OpenNG Foundation Code of Conduct

Additional context

Migrated from primefaces/primeng#19076

@geromegrignon geromegrignon added this to the Catch-up milestone Jul 24, 2026
@gianluca-moro
gianluca-moro force-pushed the fix/212/autocomplete-optionLabel branch from 87b3d04 to 6836e9c Compare August 7, 2026 19:58
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.

[AutoComplete] optionLabel not applied to selected item if suggestions are strings

3 participants