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

Hosted fields triggers cardTypeChange multiple times when when it's autofilled by browser #695

Closed
ruslantimofeev opened this issue Sep 11, 2023 · 2 comments

Comments

@ruslantimofeev
Copy link

General information

  • SDK version: 3.97.1
  • Environment: sandbox
  • Browser and OS Chrome 115.0.5790.170 (64-bit) on MacOS 13.4.1

Issue description

When autofilling the form with saved card in Chrome the SDK triggers cardTypeChange event 4 times that does not seem correct as the type changes only once.

on-card-type-chage

Example https://codepen.io/rustavely/pen/LYMxavd

@jplukarski
Copy link
Contributor

@ruslantimofeev thanks for bringing this to our attention. We'll add a ticket to our backlog to look into fixing this bug.

For internal tracking purposed -> 22016

@jplukarski
Copy link
Contributor

@ruslantimofeev After some investigation, this is occurring because of the way Chrome mimics user input in its autofill feature (this issue does not happen on Firefox). Moreover, there is no way to detect if chrome autofill has been used to fill in data via javascript. We're going to close this issue since we cannot control how Chrome fills in the data via autofill.

Let us know if you have any other questions.

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