diff --git a/components/lib/datatable/HeaderCheckbox.js b/components/lib/datatable/HeaderCheckbox.js index 8793faf2dd..d19e23b5d4 100644 --- a/components/lib/datatable/HeaderCheckbox.js +++ b/components/lib/datatable/HeaderCheckbox.js @@ -48,19 +48,17 @@ export const HeaderCheckbox = React.memo((props) => { const checkIcon = IconUtils.getJSXIcon(icon, { ...headerCheckboxIconProps }, { props }); const tabIndex = props.disabled ? null : 0; - const headerCheckboxProps = mergeProps( - { - role: 'checkbox', - 'aria-checked': props.checked, - 'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'), - tabIndex: tabIndex, - onChange: onChange, - icon: checkIcon, - checked: props.checked, - disabled: props.disabled - }, - getColumnPTOptions('headerCheckbox') - ); + const headerCheckboxProps = mergeProps({ + role: 'checkbox', + 'aria-checked': props.checked, + 'aria-label': props.checked ? ariaLabel('selectAll') : ariaLabel('unselectAll'), + tabIndex: tabIndex, + onChange: onChange, + icon: checkIcon, + checked: props.checked, + disabled: props.disabled, + pt: getColumnPTOptions('headerCheckbox') + }); return ; });