Skip to content

Commit

Permalink
Fix primefaces#6989: Datatable errors in console
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Aug 5, 2024
1 parent f2b8bd2 commit 64796ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions components/lib/datatable/RowTogglerButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export const RowTogglerButton = React.memo((props) => {
const rowGroupTogglerIconProps = mergeProps(
{
className: cx('rowGroupTogglerIcon'),
'aria-hidden': true,
unstyled: isUnstyled()
'aria-hidden': true
},
ptm('rowGroupTogglerIcon'),
getColumnPTOptions('rowGroupTogglerIcon')
Expand All @@ -49,8 +48,7 @@ export const RowTogglerButton = React.memo((props) => {
onClick: (e) => onClick(e),
className: cx('rowGroupToggler'),
tabIndex: props.tabIndex,
'aria-label': label,
unstyled: isUnstyled()
'aria-label': label
},
ptm('rowGroupToggler'),
getColumnPTOptions('rowGroupToggler')
Expand Down
5 changes: 2 additions & 3 deletions components/lib/datatable/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,14 @@ export const TableHeader = React.memo((props) => {
const headerCellProps = mergeProps(
{
style: colStyle,
className: classNames(filterHeaderClassName, className, cx('headerCell', { frozen, column: col })),
key: colKey
className: classNames(filterHeaderClassName, className, cx('headerCell', { frozen, column: col }))
},
getColumnPTOptions(col, 'root'),
getColumnPTOptions(col, 'headerCell')
);

return (
<th {...headerCellProps}>
<th key={colKey} {...headerCellProps}>
{checkbox}
{filterRow}
</th>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64796ca

Please sign in to comment.