Ajax replace inside a modal causes the current field to lose focus.

Created on 10 December 2019, almost 5 years ago
Updated 19 April 2024, 7 months ago

Problem/Motivation

When a field inside a modal form is replaced, focus is moved to the top of the form.

Proposed resolution

Don't move focus if the currently focused element is inside the modal.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Ajax 

Last updated about 9 hours ago

Created by

🇺🇸United States c7bamford

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • 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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024