bl00mber / react-phone-input-2

:telephone_receiver: Highly customizable phone input component with auto formatting
https://bl00mber.github.io/react-phone-input-2.html
MIT License
957 stars 542 forks source link

Autocomplete stop in chrome #235

Open saresh-krish opened 4 years ago

saresh-krish commented 4 years ago

Hi I am using react-phone-input-2 in ANTD form , I need to stop the autocompleted in chrome. <PhoneInput enableSearch={true} country={'us'} onChange={this.handleOnChangePrimaryPhone} placeholder={""} autoComplete= "off" /> this code is not working.

Thanks B.Saresh

vdineva commented 4 years ago

Try the following: <PhoneInput enableSearch={true} country={'us'} onChange={this.handleOnChangePrimaryPhone} placeholder={""} inputProps={{ autoComplete: 'off' }} />

saresh-krish commented 4 years ago

Thank you @vdineva this works perfectly <PhoneInput enableSearch={true} country={'us'} onChange={this.handleOnChangePrimaryPhone} placeholder={""} isValid={true} inputProps={{ autoComplete: 'none' }} />

bl00mber commented 4 years ago

Some standard props needs to be added back.