When providing autocompleteProps to the Combobox, it requires items, onChange, and children, which don't really make sense - the Combobox component manages these internally. It looks like the Combobox spreads these props after the items/onChange from its own props, so it won't "break" anything by allowing these thru, but it's not really the intended API of the component.
When providing
autocompleteProps
to theCombobox
, it requiresitems
,onChange
, andchildren
, which don't really make sense - theCombobox
component manages these internally. It looks like theCombobox
spreads these props after theitems
/onChange
from its own props, so it won't "break" anything by allowing these thru, but it's not really the intended API of the component.See this CodeSandbox for an example of passing
items
andonChange
throughautocompleteProps
: https://codesandbox.io/s/combobox-autocompleteprops-override-dc4rle?file=/index.js