diff --git a/packages/lsd-react/src/components/Autocomplete/Autocomplete.tsx b/packages/lsd-react/src/components/Autocomplete/Autocomplete.tsx index 26dab3c..0a8dc30 100644 --- a/packages/lsd-react/src/components/Autocomplete/Autocomplete.tsx +++ b/packages/lsd-react/src/components/Autocomplete/Autocomplete.tsx @@ -7,7 +7,12 @@ import { DropdownMenu } from '../DropdownMenu' import { Portal } from '../PortalProvider/Portal' import { Typography } from '../Typography' import { autocompleteClasses } from './Autocomplete.classes' -import { CommonProps, useCommonProps } from '../../utils/useCommonProps' +import { + CommonProps, + omitCommonProps, + pickCommonProps, + useCommonProps, +} from '../../utils/useCommonProps' export type AutocompleteProps = CommonProps & Omit, 'onChange' | 'value'> & @@ -87,7 +92,7 @@ export const Autocomplete: React.FC & { return (
& { open={isOpen} onClose={() => setOpen(false)} size={size} - genericFontFamily={props.genericFontFamily} + {...pickCommonProps(props)} > {suggestions.map((opt, idx: number) => ( & { return (
& { return (
& { label={'...'} onClick={onTrigger} size={size} + {...pickCommonProps(props)} /> )} {renderItems(visible)} @@ -109,6 +115,7 @@ export const Breadcrumb: React.FC & { className={clsx(breadcrumbClasses.listBox)} size={size} genericFontFamily={props.genericFontFamily} + {...pickCommonProps(props)} > {collapsed.map((opt, idx) => ( & { return (
  • & { return ( <>