Focus is lost on dialog close if the opener is inside a collapsible element

Created on 10 May 2023, over 1 year ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

If a dialog is opened with an element inside a collapsible element such as a dropbutton, dialog or contextual link, the element will be hidden when the dialog closes and focus is lost because the opener element is no longer available.

Steps to reproduce

Use the recently addeddata-drupal-ajax-container attribute: [#3358036]

This will identify collapsible containers that might contain dialog-opening elements. When a dialog closes, check to see if the opener was inside data-drupal-ajax-container and if it is hidden. In those instances, route focus to the first visible/focusable element in that container.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1

Component
Javascript 

Last updated about 2 hours ago

Created by

🇺🇸United States bnjmnm Ann Arbor, MI

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.

  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024