Skip to content

Region doesn't updates after changing country and leaving region select unselected #23460

@Stepa4man

Description

@Stepa4man

Preconditions

  1. Create user
  2. Create user address with country "United States" and region "Alabama"

Steps to reproduce

  1. Go to created customer page
  2. Go to address customer address tab
  3. Hit edit action for the created address at the addresses grid
  4. Change the country to France
  5. Don't choose any region
  6. Save address
  7. Run in browser console jQuery('[data-index="region_id_input"]').show() to display hidden State/Province field (second field with the same label)

Expected result (*)

  1. Second State/Province input is empty

Actual result (*)

  1. Second State/Province input has value Alabama (which is saved to db after hitting Save button)

Additional

The same issue is applicable for source edit page because the main point here is Region UI component which doesn't empty hidden region input with Region label for the described case.

###Env
Mac OS
Valet+ (PHP7.1, NGINX, MYSQL)
Magento 2.3-develop branch

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions