r5n-labs/react-native-otp-inputs

Wrong otp autofill.

Closed this issue · 14 comments

Wrong otp autofill.

@rmamtaventures Could you explain what do you mean by Wrong otp autofill? Some code reproduction or example.

Current behaviour:- When navigate to otp screen, it's autofill by second last message of otp from device messages.
Expected behaviour:- It should be autofill by latest otp message from device messages.

Is it clear?

@rmamtaventures It's autofilled with copied text in Clipboard so behaviour is correct.

Each time it's autofill with same otp in android device. I have not copied any otp.

@rmamtaventures Please share example. I cannot help without any context :)

@dsznajder its happen when you have copied value exact same as OTP require ....

facing the same issue. can anyone help please??

@paras-kc you can do fork and do your code...

@mayankpandav you can also open a PR that fixes/resolve this. I did not receive any of the requested things as reproduction or code example. Also, couldn't reproduce it by myself 😕

@dsznajder if any text is already copied in the clipboard and now send OTP and redirect to OTP screen to input OTP but that copied text is showing there. Also unable to edit or clear the input. Can anyone help, please?

@Taiyab123 could you provide some reproduction?

Hi, getting the same issue. I want to disable the autofill, how can i do it?

It seems to be working fine in 5.0.0-alpha.0. Today I will try to release stable v5.