#13488·primeng

Accordion: Accessibility issues using keyboard navigation on accordion with form-elements inside (v16)

Author: GykonikCreated Aug 11, 2023Updated Sep 21, 2026
LabelsType: BugResolution: Stale

Describe the bug

When placing form elements such as input-number, cascade-select, and multi-select inside the Accordion panels, the keyboard controls (specifically the up and down arrow keys) do not function correctly.

After, i.e., selecting the CascadeSelect and expanding it using enter, I cannot press the down arrow key to get to the options. Instead, the first Accordion Panel gets selected.

Related to this: Focusable elements inside collapsed accordion panels are also highlighted if I navigate with the tab key. From my point of view, that makes no sense. At the moment, I developed a workaround to change tabIndex on content within hidden panels to 1, but this should be the default behavior I suppose.

So to sum it up:

  1. Arrow Key navigation of form elements within accordion panels doesn't work
  2. Tab-Navigation doesn't properly ignore collapsed content

Environment

Windows 10

Reproducer

https://stackblitz.com/edit/fcgd4a?file=src%2Fapp%2Fdemo%2Faccordion-basic-demo.ts,src%2Fapp%2Fdemo%2Faccordion-basic-demo.html

Angular version

16.2.0

PrimeNG version

16.2.0

Build / Runtime

Angular CLI App

Language

ALL

Node version (for AoT issues node --version)

16.0.2

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the provided StackBlitz demo.
  2. Use Tab-navigation to get to an accordion panel (there you can already notice that it also focuses elements in collapsed tabs)
  3. Open MultiSelect or CascadeSelect using spacebar / enter
  4. Try to navigate into the actual options by using tab/arrow keys tab/arrow

Expected behavior

  1. Content of collapsed panels should be un-tabbable
  2. When using arrow keys/tab on form elements within one panel, it should behave as if the form element would be isolated (that is, default navigation as described in the documentation)