Skip to content

Feature Request: autoComplete mode for free text input (multi + comma support) #339

Open

Description

Currently, react-dropdown-select supports create and createNewLabel, but it requires explicit selection to add new values.
I would like to propose autoComplete and separator props with the following behavior:

When autoComplete=true:

  • Typed text is automatically treated as selected value

  • No need to explicitly click "create"

    When multi=true:

    • Comma-separated input creates multiple values
      Example:
      "apple, banana" → ["apple", "banana"]

- Matching logic:

  • If typed value matches existing option → use that option
  • Else → create new value

separator: (default: comma)

Use cases:

  • Tag inputs
  • Search bars with suggestions
  • Faster UX for bulk entry

I amm happy to work on a PR if this approach is acceptable.

Activity

  1. sanusart commented on Aug 28, 2026

    @sanusart
    Owner

    Sorry. I missed this issue somehow. I wonder if we can make it pluggable by not extending the conditions on the internal logic, but rather create a callback to plug the logic in. Autocomplete is pretty confusing term for a create mode imho. Need to think about it.

  2. Mohammed-Sameer-Inamdar commented on Aug 29, 2026

    @Mohammed-Sameer-Inamdar
    Author

    Yeah it's very much required for me. For now I switched to some other lib. Let me know if I can contribute tp enhance this feature.

  3. sanusart commented on Aug 29, 2026

    @sanusart
    Owner

    Have you tried to override inputRenderer? I think most of what you described can be done while overriding it and applying own logic when enter hit by user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions