returnnewError(['MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.',`However,${props.defaultValue}wasprovided.`].join('\n'));
}
returnnull;
}),
/**
* If `true`, the input can't be cleared.
* @default false
*/
disableClearable:PropTypes.bool,
/**
* If `true`, the popup won't close when a value is selected.
* @default false
*/
disableCloseOnSelect:PropTypes.bool,
/**
* If `true`, the component is disabled.
* @default false
*/
disabled:PropTypes.bool,
/**
* If `true`, will allow focus on disabled items.
* @default false
*/
disabledItemsFocusable:PropTypes.bool,
/**
* If `true`, the list box in the popup will not wrap focus.
* @default false
*/
disableListWrap:PropTypes.bool,
/**
* If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.
* @default false
*/
disablePortal:PropTypes.bool,
/**
* A function that determines the filtered options to be rendered on search.
*
* @param {T[]} options The options to render.
* @param {object} state The state of the component.
* @returns {T[]}
*/
filterOptions:PropTypes.func,
/**
* If `true`, hide the selected options from the list box.
returnnewError(['MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.',`However,${props.value}wasprovided.`].join('\n'));