Skip to content

Blocked aria-hidden on an element because its descendant retained focus. #156

@Norlandz

Description

@Norlandz

Im using the
https://jcoreio.github.io/material-ui-popup-state/#cascading-hover-menus

When I click on the item, following error shows.

material-ui-popup-state/:1 Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: li
Ancestor with aria-hidden:  <div role=​"presentation" id=​"moreChoicesCascadingMenu" class=​"MuiPopover-root MuiMenu-root MuiModal-root css-749mnm" style=​"pointer-events:​ none;​" aria-hidden=​"true">​<div aria-hidden=​"true" class=​"MuiBackdrop-root MuiBackdrop-invisible MuiModal-backdrop css-1lbe2ow" style=​"opacity:​ 0;​ transition:​ opacity 195ms cubic-bezier(0.4, 0, 0.2, 1)​;​ visibility:​ hidden;​">​</div>​<div tabindex=​"-1" data-testid=​"sentinelStart">​</div>​<div class=​"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation8 MuiPopover-paper MuiMenu-paper css-19cmak4" tabindex=​"-1" style=​"--Paper-shadow:​ 0px 5px 5px -3px rgba(0,0,0,0.2)​,0px 8px 10px 1px rgba(0,0,0,0.14)​,0px 3px 14px 2px rgba(0,0,0,0.12)​;​ opacity:​ 0;​ transform:​ scale(0.75, 0.5625)​;​ pointer-events:​ auto;​ transition:​ opacity 267ms cubic-bezier(0.4, 0, 0.2, 1)​, transform 178ms cubic-bezier(0.4, 0, 0.2, 1)​ 89ms;​ top:​ 536px;​ left:​ 836px;​ transform-origin:​ 0px 0px;​">​…​</div>​<div tabindex=​"-1" data-testid=​"sentinelEnd">​</div>​</div>​

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions