primefaces / primefaces/primereact

AutoComplete: Multiple & !forceSelection

Open
#4,621 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: New Feature
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the feature you would like to see added

Allow the Autocomplete with multiple selection to allow for custom items.
forceSelection is off by default, but doesn't apply if multiple is set to true.

Is your feature request related to a problem?

No response

Describe the solution you'd like

Maybe an option to the bottom of the list for "Add custom option " which upon clicking it, adds what the user has typed as a chip to the autocomplete.

Describe alternatives you have considered

No response

Additional context

I don't think we'd even need to verify if what the user has input is in the options list or not to show the add custom option as it's possible they want to add some text that is part of an option, but not the actual option.

Here is a simple example

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the AutoComplete component entry point and trace how multiple selection and forceSelection handle typed values. Review the linked custom-selections example, then define the add-custom-option interaction and verify that submitted text becomes a chip without disrupting existing option selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.