Использование Shadcn/UI лист вместе с раскрывающимся делом в листе .
Когда нажата кнопка выпадающего триггера, он дает следующую ошибку в консоли
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: div
Ancestor with aria-hidden:
< /code>
Код для того же самого-< /p>
return (
!open && onClose()}>
e.preventDefault()} className="p-0 overflow-auto">
Person Detail
Edit Person
Delete
);
Подробнее здесь: https://stackoverflow.com/questions/794 ... nt-because
Лист Shadcn с выпадающим меню дает «заблокированную арию, скрытую на элементе, потому что его потомки сохранял фокус» ⇐ Html
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение