Skip to content

fix(account): TRAC-686 remove duplicate id="default_instrument" on edit payment method page#2661

Merged
jairo-bc merged 3 commits into
masterfrom
LTRAC-715
May 22, 2026
Merged

fix(account): TRAC-686 remove duplicate id="default_instrument" on edit payment method page#2661
jairo-bc merged 3 commits into
masterfrom
LTRAC-715

Conversation

@jairo-bc
Copy link
Copy Markdown
Contributor

@jairo-bc jairo-bc commented May 21, 2026

What?

The Update Payment Method page (Account > Payment Methods > Edit) renders two <input type="checkbox"> elements that both have id="default_instrument", producing invalid markup and an accessibility violation.

The duplicate input is leftover from the pre-PAYMENTS-4944 template, which used customer.payment_methods.selected_payment_method directly. When that change refactored the form to use {{#with customer.edit_stored_instrument}} and renamed the field to is_default, it left the old <input name="default_instrument"> in place.

This PR removes the duplicate input so each ID is unique on the page.

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

Screenshots (if appropriate)

Screenshot 2026-05-21 at 18 43 03

@jairo-bc jairo-bc changed the title fix(a11y): LTRAC-715 remove duplicate id="default_instrument" on edit payment method page fix(a11y): TRAC-686 remove duplicate id="default_instrument" on edit payment method page May 21, 2026
@jairo-bc jairo-bc changed the title fix(a11y): TRAC-686 remove duplicate id="default_instrument" on edit payment method page fix(account): TRAC-686 remove duplicate id="default_instrument" on edit payment method page May 21, 2026
@jairo-bc jairo-bc marked this pull request as ready for review May 21, 2026 16:44
@jairo-bc jairo-bc requested a review from a team as a code owner May 21, 2026 16:44
Comment thread CHANGELOG.md Outdated
@jairo-bc jairo-bc merged commit 116dc26 into master May 22, 2026
1 check passed
@jairo-bc jairo-bc deleted the LTRAC-715 branch May 22, 2026 13:39
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

Successfully merging this pull request may close these issues.

3 participants