I'm using the autocomplete in my project alongside tailwindcss.
Tailwindcss by default applies styles to any input with [type]=*
The AutoComplete doesn't actually use type="text" by default, so these styles aren't applied.
I've tried adding type="text" to the autocomplete, which does work. But I get the following error:
Type '{ apiKey: string; className: string; onPlaceSelected: (place: any) => void; options: { types: string[]; componentRestrictions: { country: string; }; }; type: string; }' is not assignable to type 'IntrinsicAttributes & ReactGoogleAutocompleteInputProps'.
Property 'type' does not exist on type 'IntrinsicAttributes & ReactGoogleAutocompleteInputProps'
I'm using the autocomplete in my project alongside tailwindcss.
Tailwindcss by default applies styles to any input with [type]=*
The AutoComplete doesn't actually use type="text" by default, so these styles aren't applied.
I've tried adding type="text" to the autocomplete, which does work. But I get the following error:
Type '{ apiKey: string; className: string; onPlaceSelected: (place: any) => void; options: { types: string[]; componentRestrictions: { country: string; }; }; type: string; }' is not assignable to type 'IntrinsicAttributes & ReactGoogleAutocompleteInputProps'. Property 'type' does not exist on type 'IntrinsicAttributes & ReactGoogleAutocompleteInputProps'