Select component does not accept undefined for initialSelectedIds
Closed this issue ยท 0 comments
drobota commented
๐ Bug Report
useSelectInput throws error if initialSelectedIds is set to undefined.
(property) initialSelectedIds?: SelectedIds | undefined
Link to repl or repo (highly encouraged)
##Error Output
TypeError: Cannot read properties of undefined (reading 'length')
<Select initialSelectedIds={id ? [id]: undefined} items={items} getTextValue={getTextValue}>
<Select.Input {...props} />
<Select.Popper>
<Select.Card>
<Select.List>
....
</Select.List>
</Select.Card>
</Select.Popper>
</Select>