react-phone-input-2 icon indicating copy to clipboard operation
react-phone-input-2 copied to clipboard

set autoComplete: 'off' in inputProps, but it does not work

Open xiaoli2021 opened this issue 4 years ago • 3 comments

<PhoneInput inputProps={{ name, required: true, autoComplete: 'off', }} I set the autoComplete off in inputProps, but it does not work when i reset the form and work on other fields, the previous phone number will automatically filled, how can i fix it?

xiaoli2021 avatar Apr 16 '22 15:04 xiaoli2021

Try

inputProps={{
name,
required: true,
autoComplete: 'none',
}} 

instead

AliDayi97 avatar Jun 29 '23 10:06 AliDayi97

Pass autocomplete: 'off' in inputProps.

ashishgxzc avatar Sep 12 '23 07:09 ashishgxzc