Selecting "Add territory" button puts focus on wrong field

Created on 30 January 2025, 2 months ago

Problem/Motivation

For the Address module’s “Zone” address: After clicking “Add territory” button, keyboard focus moves to the first “Country” field in the field group, instead of the new “Country” field as expected. Please check out a video of this happening in an attachment at https://www.drupal.org/files/issues/2025-01-30/address-module-focus-issu...

Steps to reproduce

  1. Enable the Address module
  2. Create new content type titled `location` with Address > Zone field
  3. Navigate to and create new content node at /node/add/location
  4. Tab through the Zone fieldset until you reach the Add territory button
  5. Select the Add territory button, and immediately click the keyboard tab button
  6. Verify that the first item to receive keyboard focus is the first Country field and not the new Country field.

Proposed resolution

User interface changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

2.1

Component

User interface

Created by

🇺🇸United States katannshaw Kansas

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024