primereact
primereact copied to clipboard
DataTable: Accessibility issues.
Describe the bug
The DataTable component fails accessibility requirements (E950, E951 and E8791).
An element with role='table' must have an accessible name. Setting name via props doesn't set it correctly.
DataTable also fails accessibility E951, because the <th> elements do not have name property
Reproducer
No response
System Information
primereact: 10.9.7
Steps to reproduce the behavior
- Go to https://primereact.org/multiselect/
- Edit any example via stackblitz by adding prop
name - Notice that the it is not set correctly
Expected behavior
Passing name prop should set it on the correct element