Skip to content

fix(autocomplete): use selected item template in single mode - #1398

Open
xonaib wants to merge 1 commit into
openng-org:mainfrom
xonaib:fix-autocomplete-selecteditem-single
Open

fix(autocomplete): use selected item template in single mode#1398
xonaib wants to merge 1 commit into
openng-org:mainfrom
xonaib:fix-autocomplete-selecteditem-single

Conversation

@xonaib

@xonaib xonaib commented Jul 24, 2026

Copy link
Copy Markdown

Summary

  • use the selectedItem template text for the single-mode AutoComplete input display
  • keep the existing optionLabel fallback when no selectedItem template is present
  • add a regression test for selecting an item in single mode with pTemplate="selecteditem"

Fixes #938

Test plan

  • pnpm --filter @openng/optimus-ui test:unit --include=src/autocomplete/autocomplete.spec.ts --reporters=progress
  • pnpm run build:lib

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: selectedItem template only works if multiple="true"

1 participant