{
onRemovedValue(value)
if (shouldAutoFocusSearch) {
triggerAutoFocus()
}
}}
/>;
// only when is local options and has no values selected
let forceMenuToOpen = Array.isArray(options) && options.length && !selectedValues.length
return
{stateFirst && multiSelectState}
{...{
...SelectSearchProps || emptyProps,
forceMenuToOpen,
autoFocusTrigger
}}
options={options}
onSelectedValue={value => {
onSelectedValue(value)
if (shouldAutoFocusSearch) {
triggerAutoFocus()
}
}}
selectedValues={selectedValues}
/>
{!stateFirst && multiSelectState}
}