You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
TypeScript complains about passing required into Autocomplete
Description:
The "required" attribute is not a standard HTML attribute that is supported by all input types, and therefore, it is not included in the React.HTMLAttributes interface.
Would it be possible to update the ReactGoogleAutocompleteInputProps interface to include all HTML attributes that are supported by input types, regardless of whether they are considered standard or not? This would allow users to pass in any input attribute, including the "required" attribute, without encountering TypeScript errors.
My workaround:
ts-ignore
The text was updated successfully, but these errors were encountered:
Issue:
TypeScript complains about passing required into Autocomplete
Description:
The "required" attribute is not a standard HTML attribute that is supported by all input types, and therefore, it is not included in the React.HTMLAttributes interface.
Would it be possible to update the ReactGoogleAutocompleteInputProps interface to include all HTML attributes that are supported by input types, regardless of whether they are considered standard or not? This would allow users to pass in any input attribute, including the "required" attribute, without encountering TypeScript errors.
My workaround:
ts-ignore
The text was updated successfully, but these errors were encountered: