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

[BUG]: 1p focus flickers when using AddressElement and PaymentElement. #568

Open
gdborton opened this issue Feb 3, 2025 · 5 comments
Open
Labels
bug Something isn't working

Comments

@gdborton
Copy link

gdborton commented Feb 3, 2025

What happened?

Hello! We spotted an issue w/ the Stripe Element's form controls + FF + 1password. It seems that including both the PaymentElement and AddressElement on the same screen causes 1password to jump focus between both iframes repeatedly as they compete w/ each other.

I tried looking through the docs to see if there's a way to use a single iframe for both payment and address forms, but it seems there's not.

I know this is likely 1p more so than Stripe, but hoping that you've got a recommendation that we can apply here.

Environment

No response

Reproduction

No response

@gdborton gdborton added the bug Something isn't working label Feb 3, 2025
@alexlande-stripe
Copy link

Hey @gdborton, thanks for reporting this. Can you share a few more details?

  1. Just to double check, this is happening with the 1password Firefox extension installed?
  2. Is it happening continuously, once on initial render, only when you try to autofill using 1password? Video would be helpful if possible.

@gdborton
Copy link
Author

gdborton commented Feb 3, 2025

@alexl-stripe

  1. Yes, it seems to impact Arc as well. No issues w/ Chrome/Safari that we can tell.
  2. Continuously, sometimes just once or twice, sometimes repeatedly.

I've opened a support ticket w/ 1p as well. Just hoping you can provide a work around that doesn't involve moving address collection to a separate step.

Video:

Kapture.2025-02-03.at.15.12.35.mp4

@gdborton
Copy link
Author

gdborton commented Feb 3, 2025

More context:

Added a breakpoint inside 1p's extension, where it calls focus.

Image

Both the payment and the address fields hit the breakpoint independently.

Image

@alexlande-stripe
Copy link

@gdborton Thanks! Could you try one random thing and move the AddressElement to before the PaymentElement in the DOM? We have another recent issue that has a little bit of overlap with this: #567

@gdborton
Copy link
Author

gdborton commented Feb 3, 2025

Same result:

Kapture.2025-02-03.at.15.48.34.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants