Open
Description
Describe the bug
When initializing toggle with data-toggle-is-active
targets aria-hidden
attribute is not changed. This happens when data-toggle-target
is used to identify target, if data-toggle-target-parent
is used, the bug is not present.
To Reproduce
Steps to reproduce the behavior:
- Have exact markup like in Collapsible panel with ARIA.
- Add
data-toggle-is-active
to button. - Reload page and note panel is expanded (working,
is-active
class added to button, panelsaria-hidden
set tofalse
) - Change attribute from
data-toggle-target-parent
todata-toggle-target
- Reload page and note panel is NOT expanded (does not work,
is-active
class added to button, but panelsaria-hidden
IS NOT set totrue
(value not changed))
Expected behavior
aria-hidden
value changed to true
Screenshots
None.
Desktop (please complete the following information):
- OS: MacOS
- Browser Firefox
- Version 122
Additional context
None.
Metadata
Metadata
Assignees
Labels
No labels