react-places-autocomplete icon indicating copy to clipboard operation
react-places-autocomplete copied to clipboard

Remove autocomplete from browser suggestions

Open mendeldahan opened this issue 4 years ago • 0 comments
trafficstars

Hello,

I'm trying to hide the browser autocomplete box from saved addresses when clicked on the box.

I noticed in your code you have the line "autocomplete: 'off'". From my research using "off" doesn't work anymore for most browsers. Instead, I have found that using "autoComplete="randomstring" " works to resolve this issue.

Is there a way I can resolve this within the installed package?

Here is the code I'm using

        <div className="p-field p-col-12 p-md-4">
            <label htmlFor="firstname6">First Name</label>
            <InputText id="firstname6" type="text" name="first_name" value={first_name} onChange={handle_change} autoComplete="randomstring" />

Screen Shot 2020-11-22 at 6 09 51 PM

Screen Shot 2020-11-22 at 6 11 41 PM Screen Shot 2020-11-22 at 6 11 35 PM

mendeldahan avatar Nov 22 '20 23:11 mendeldahan