primefaces / primefaces/primereact
AutoComplete: Multiple & !forceSelection
Nobody has claimed this yet.
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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