valerii15298 / mui-autocomplete-select-all

MIT License
3 stars 0 forks source link

Property 'ListBoxProps' is missing in type 'HTMLAttributes<HTMLElement>' #1

Open cannontechnology opened 1 year ago

cannontechnology commented 1 year ago

Hi - I'm running into the following issue:

TS2322: Type 'ForwardRefExoticComponent<{ children?: ReactNode; ListBoxProps: ListBoxProps; } & RefAttributes>' is not assignable to type 'JSXElementConstructor<HTMLAttributes> | undefined'. Type 'ForwardRefExoticComponent<{ children?: ReactNode; ListBoxProps: ListBoxProps; } & RefAttributes>' is not assignable to type '(props: HTMLAttributes, deprecatedLegacyContext?: any) => ReactElement<any, any> | null'. Types of parameters 'props' and 'props' are incompatible. Type 'HTMLAttributes' is not assignable to type '{ children?: ReactNode; ListBoxProps: ListBoxProps; } & RefAttributes'. Property 'ListBoxProps' is missing in type 'HTMLAttributes' but required in type '{ children?: ReactNode; ListBoxProps: ListBoxProps; }'. 149 | 150 | )}

151 | ListboxComponent={MuiAutocompleteSelectAll.ListBox}

valerii15298 commented 1 year ago

Hello, @cannontechnology Can you please share which version of mui are you using?

Also code sample how are you using Autocomplete would be really helpful to understand your issue. Ideally codesandbox repro: https://codesandbox.io/s/react-mui-y191q