primereact icon indicating copy to clipboard operation
primereact copied to clipboard

AutoComplete: Multiple & !forceSelection

Open ribrown-bishs opened this issue 2 years ago • 4 comments

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

ribrown-bishs avatar Jul 06 '23 20:07 ribrown-bishs

It looks like MUI has it called FreeSolo Create mode too: https://mui.com/material-ui/react-autocomplete/#free-solo

Similar to what you are suggesting that it says "Add XXX" when you type in something not in the list. We should look if this is implemented in PrimeNG or PrimeVue yet.

melloware avatar Aug 25 '23 18:08 melloware

Hi, we're currently focused on Unstyled for PrimeReact and styling enhancements. Once they are released, we'll be revisiting the feature requests.👍

Appreciate your patience and interest in PrimeReact.🚀

atkntepe avatar Aug 26 '23 10:08 atkntepe

Hello @melloware and @atkntepe -- I'm sure that most of the team's effort is towards the v11 release but I'm wondering if this is still on the team's radar. We are very interested in this feature

omikader avatar Oct 01 '25 15:10 omikader

@omikader your best bet for immediate fix is PrimeReact PRO support.

melloware avatar Oct 01 '25 17:10 melloware