Problem/Motivation

Similar to #3562910: Keyboard focus not properly managed after AJAX filter selection of radio button on view page / Screen reader focus not working as expected on AJAX filter selection on view page, the keyboard focus after AJAX is not properly handled for checkboxes.
The fix is trivial; it's mostly the same as for radio buttons, just a few changes are needed to enable it.

Steps to reproduce

Same as #3562910: Keyboard focus not properly managed after AJAX filter selection of radio button on view page / Screen reader focus not working as expected on AJAX filter selection on view page, but for checkboxes.

  1. Navigate to a Drupal view page with an AJAX filter (having auto-submit enabled) using a keyboard interface.
  2. Select a filter option checkbox.
  3. Observe that the view updates with new content but the keyboard focus is not on the selected div.

Proposed resolution

Update the code to handle checkboxes the same way as radio buttons.

Remaining tasks

Automated test.

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

abramm created an issue. See original summary.

abramm’s picture

Issue summary: View changes

abramm’s picture

Assigned: abramm » Unassigned
Status: Active » Needs work

smustgrave made their first commit to this issue’s fork.

  • smustgrave committed 22cf050e on 7.1.x authored by abramm
    feat: #3576710 Keyboard focus not properly managed after AJAX filter...
smustgrave’s picture

Status: Needs work » Fixed

small enough I'm fine with merging as is. Thanks.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.