blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

[MultiSelect2] allow to create multiple items

Open ZeRego opened this issue 3 years ago • 1 comments

Environment

  • Package version(s): 4.2.0
  • Browser and OS versions:

Feature request

Multi select should allow the same behaviour we have in the tag input component where we can create multiple values at once. Multi select doesn't need to implement the same behaviour, it just needs to support creating multiple items at once.

Existing typing

createNewItemFromQuery | undefined \| (query: string) => T

Proposed typing

createNewItemFromQuery | undefined \| (query: string) => T | T[]

Examples

How tag input works:

tag input

How multi select currently works

multi select

I would like to split the input by comma and add both test1 and hello as new values.

ZeRego avatar Jun 16 '22 13:06 ZeRego

sounds like a good feature request. accepting PRs ✅

adidahiya avatar Jun 16 '22 14:06 adidahiya