Esam eldean
Esam eldean

Reputation: 139

how to avoid or disable autoComplete in text input for Redux form?

i am using ReactJS and ReduxJS to construct my application .

I created my form using Redux-Form and there are many text input and for one of them ,i am using onkeyDown event to increase and decrease number in my text

so when i click up arrow or enter first digit the text is auto completed with previous date entered(history) that disturb when i click another up arrow

[Hint] I tried AutoComplete=off and did not work

enter image description here

Upvotes: 3

Views: 11606

Answers (3)

Preeti Maurya
Preeti Maurya

Reputation: 253

i have tried all of the above example but this one is worked for me autoComplete="off"

Upvotes: 0

Remi Sture
Remi Sture

Reputation: 12978

Seems like autoComplete="off" no longer works in Chrome. A workaround is to either set autoComplete="new-password" or a value not supported: autoComplete="something-unsupported".

Upvotes: 4

Davin Tryon
Davin Tryon

Reputation: 67296

You just have the attribute cased incorrectly. You can use the following 3 attributes on the input:

autoComplete="off"
autoCorrect="off"
spellCheck="off"

Notice that each are camel case.

Upvotes: 15

Related Questions