Skip to content

Checkout: Region select autofillable even if Allow to Choose State if It is Optional for Country is set to No #33437

Open
@mattijv

Description

@mattijv

Preconditions (*)

  1. Magento 2.4.2 with sample data
  2. United States removed from General > General > State Options > State is Required for
  3. Allow to Choose State if It is Optional for Country is set to No

Screenshot from 2021-07-07 11-33-47

  1. Browser has an address saved with United States as the country and California as the region (e.g. go to Settings > Autofill > Addresses and more in Chrome and add an address in United States and California as the region). I only tested this with Chrome, unsure if other browsers are affected.

Screenshot from 2021-07-07 11-39-58

Note: the country can be any country with regions, this is just an example.

Steps to reproduce (*)

  1. Add item to the cart
  2. Go to the checkout and apply the autofill to the shipping address (in Chrome start typing the name you selected and it should prompt for the autofill).
  3. Select shipping method and go to the next step

Screenshot from 2021-07-07 11-34-33

Expected result (*)

  1. The region input is NOT filled.

Screenshot from 2021-07-07 12-10-13

Actual result (*)

  1. The region input IS filled.

Screenshot from 2021-07-07 11-34-51

This is problematic as the customer can't see the field and does not know if a wrong region is filled there. We have several orders that have the wrong region in the address as a result of this.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Area: Cart & CheckoutComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions