Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate ID chrome console, cannot validate pin #196

Open
nowackipawel opened this issue Nov 21, 2024 · 1 comment
Open

Duplicate ID chrome console, cannot validate pin #196

nowackipawel opened this issue Nov 21, 2024 · 1 comment
Assignees

Comments

@nowackipawel
Copy link

Describe the bug
I would like to use two Pinputs on one screen on WEB version of the app. However I am getting error about duplicates of element ID. As for now it looks like this cause the issue setPIN and confirmationPIN comparasion is not working for me.

To Reproduce
generate webpage with 2 pinputs and check its values for being the same;

Screenshots
[DOM] Found 2 elements with non-unique id #one-time-code: (More info: https://goo.gl/9p2vKq)
undefined
SCR-20241121-tdnx

Pinput version: [e.g. 1.0.0]

Smartphone (please complete the following information):
Google chrome

@Tkko
Copy link
Owner

Tkko commented Dec 8, 2024

Hi @nowackipawel, could you please provide the small reproducible code snippet? I tried having to Pinputs on one page but I don't get the same issue.

Possible solutions:

  • Provide keys
  • Don't use single TextEditingController for both Pinputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants