diff --git a/components/lib/accordion/Accordion.js b/components/lib/accordion/Accordion.js index 373155304b..8da394d756 100644 --- a/components/lib/accordion/Accordion.js +++ b/components/lib/accordion/Accordion.js @@ -96,6 +96,7 @@ export const Accordion = React.forwardRef((props, ref) => { if (shouldUseTab(tab)) { const key = idState + '_' + index; const selected = isSelected(index); + const otherProps = ObjectUtils.findDiffKeys(tab.props, AccordionTab.defaultProps); const tabHeader = createTabHeader(tab, selected, index); const tabContent = createTabContent(tab, selected, index); const tabClassName = classNames('p-accordion-tab', { @@ -103,7 +104,7 @@ export const Accordion = React.forwardRef((props, ref) => { }); return ( -