diff --git a/packages/core/src/components/Tabs/Tabs.jsx b/packages/core/src/components/Tabs/Tabs.jsx index afccb29e71..f5d8065234 100644 --- a/packages/core/src/components/Tabs/Tabs.jsx +++ b/packages/core/src/components/Tabs/Tabs.jsx @@ -46,11 +46,8 @@ function panelTabId(panel) { * @return {Boolean} Is this a TabPanel component? */ function isTabPanel(child) { - // Preact doesn't support child.type, React doesn't support child.attributes - return ( - child && - (child.type === TabPanel || (child.attributes && child.attributes.tab)) - ); + // Preact doesn't support child.type + return child && (child.type === TabPanel || (child.props && child.props.tab)); } /**