Skip to content

Feature Request: Autocomplete on tag input #530

Description

@eoinmurray

I tried making this myself, but it didn't work out well. Autocomplete on tags would be very useful since most sites that accept tags use autocomplete for the tag input (stackoverflow etc...).

Maybe the api could be like the following:

<Autocomplete
  title="Fruits"
  onChange={(newTags) => console.log(newTags)}
  items={['Apple', 'Apricot', 'Banana', 'Cherry', 'Cucumber']}
>
  {(props) => {
    const { getInputProps, getRef, inputValues } = props
    return (
      <TagInput
        inputProps={{ placeholder: 'Add trees...' }}
        values={inputValues}
        innerRef={getRef}
        {...getInputProps()}
      />
    )
  }}
</Autocomplete>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions