Skip to content

[5.x]: Changing the state / administrative area will clear out the city / locality #17464

@MoritzLost

Description

@MoritzLost

What happened?

Description

When editing an address through the Addresses field, changing the state (administrativeArea) will clear out any existing value in the city (locality) field:

changing-states.mov

Steps to reproduce

  1. In an address slideout, select United States or Canada in the Country field.
  2. Enter anything in the city field.
  3. Change the selected option in the State (United States) or Province (Canada) field.

Expected behavior

The city field should retain its current value.

Actual behavior

The city field is cleared out.

Craft CMS version

5.7.10

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions