stripe-js icon indicating copy to clipboard operation
stripe-js copied to clipboard

[BUG]: `CardElement` not focusing next element on forward tab when within iframe

Open andy-hook opened this issue 2 years ago • 10 comments

What happened?

After forward tabbing through the CardElement if the next focusable element is within an iframe then it will be skipped.

My use case is that I'm combining the AddressElement with CardElement and the former renders it's inputs within an iframe, breaking keyboard accessibility if CardElement appears before.

Environment

Chrome 107.0.5304.110 (Official Build) (arm64) on MacBook 12.6 (21G115)

Reproduction

https://codesandbox.io/s/stripe-card-element-tab-focus-fs30nu?file=/src/CardForm.tsx

andy-hook avatar Nov 15 '22 12:11 andy-hook

@andy-hook Thank you for flagging this. We are investigating into this issue and will update the status here.

graceg-stripe avatar Nov 16 '22 19:11 graceg-stripe

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 09 '22 14:12 stale[bot]

Thanks @graceg-stripe , was there any progress?

andy-hook avatar Dec 09 '22 15:12 andy-hook

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 29 '22 19:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 23 '23 00:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 12 '23 07:02 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 04 '23 17:03 stale[bot]

It happens when you Shift+Tab too, moving from CardElement into a previously declared iframe, the iframe is skipped.

djejaquino avatar May 31 '23 16:05 djejaquino

Any updates on this? It's still very much an issue.

sicknarlo avatar Apr 26 '24 17:04 sicknarlo

We just realized this is an issue for us too and is a very very big deal.

tayeke avatar Jun 21 '24 20:06 tayeke