fix: append className prop to default class names in Autocomplete component

This commit is contained in:
Hossein Mehrabi 2023-04-18 18:46:53 +03:30
parent 6c7c758b15
commit 2464cffc4b
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 1 additions and 1 deletions

View File

@ -87,6 +87,7 @@ export const Autocomplete: React.FC<AutocompleteProps> & {
return (
<div
ref={containerRef}
{...props}
className={clsx(
props.className,
commonProps.className,
@ -98,7 +99,6 @@ export const Autocomplete: React.FC<AutocompleteProps> & {
? autocompleteClasses.outlined
: autocompleteClasses.outlinedBottom,
)}
{...props}
>
{label && (
<Typography