Open Bug 1472712 Opened 6 years ago Updated 2 years ago

Fix auto-focus behavior on the security code input element in payment method picker

Categories

(Firefox :: WebPayments UI, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: prathiksha, Unassigned)

Details

(Whiteboard: [webpayments-reserve])

Attachments

(1 file)

Attached image screenshot.png
Currently, we auto-focus on the security code input element in the payment method picker as a next step when a "change" event occurs on the payment method picker, which is usually fired by a user clicking on a payment method option from the select dropdown.

We can see us doing that here: https://searchfox.org/mozilla-central/rev/4074ba403219b7accdf00220b20dc492bfd4d83e/browser/components/payments/res/containers/payment-method-picker.js#116

We may want to find an alternative way to have this auto-focus behavior because this "change" event is also fired when we try to select a payment method option using a keypress, which causes the security code input element to steal focus and contain the typed text.
Priority: -- → P3
Whiteboard: [webpayments-reserve]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: