Package
v4.x
Description
I'm using a USelectMenu to select over multiple entities. I would like to have a separate create item for each. However, currently only 1 create item seems to be supported directly.
If I naively just include my own create items (of type: 'item') with appropriate onSelect, then they get filtered out by the search.
Workarounds:
- Make a default create item followed by a modal/popover asking which type of item the user actually wants. Working, but awkward UX.
- Make naive create items always include the search term so they are not filtered out. Works but meh?..
Proposal: if currently there is no clean way, then add new property always to an item of type: 'item' which excludes the item from filtering. The property also easily covers all cases of create-item, so the latter can even be deprecated if desired.
Package
v4.x
Description
I'm using a USelectMenu to select over multiple entities. I would like to have a separate create item for each. However, currently only 1 create item seems to be supported directly.
If I naively just include my own create items (of
type: 'item') with appropriateonSelect, then they get filtered out by the search.Workarounds:
Proposal: if currently there is no clean way, then add new property
alwaysto an item oftype: 'item'which excludes the item from filtering. The property also easily covers all cases ofcreate-item, so the latter can even be deprecated if desired.