Skip to content

Prefix dropdown in checkout doesn't select empty value by default if required #18823

Closed
@DanieliMi

Description

@DanieliMi

Preconditions (*)

  1. Magento 2.2.6
  2. Luma Theme

Steps to reproduce (*)

  1. In Admin Backend go to Stores > Configuration > Customers > Name and Address Options
  2. Set "Show Prefix" to "Required"
  3. Set "Prefix Dropdown Options" to ";Mr.;Mrs."
  4. Save Config
  5. Go to your store
  6. Add a item to your cart
  7. Go to checkout

Expected result (*)

I expect the empty value in the prefix dropdown to be selected by default.
prefix_expected

Actual result (*)

Instead of having the empty value selected by default it will be always the first value selected.
prefix_actual

Additional information

issue_18823

Metadata

Metadata

Labels

Component: CustomerEvent: mm20inFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Reproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Triage: DoneHas been reviewed and prioritized during Triage with Product Managers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions