Skip to content

Commit b6cf703

Browse files
committed
fix: filter DOM props on TabPanels
1 parent 5670b2a commit b6cf703

File tree

1 file changed

+4
-1
lines changed
  • packages/react-aria-components/src

1 file changed

+4
-1
lines changed

packages/react-aria-components/src/Tabs.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,12 @@ export const TabPanels = /*#__PURE__*/ createHideableComponent(function TabPanel
394394
prevSize.current = ref.current.getBoundingClientRect();
395395
}
396396

397+
let DOMProps = filterDOMProps(props, {global: true});
398+
delete DOMProps.id;
399+
397400
return (
398401
<div
399-
{...props}
402+
{...DOMProps}
400403
ref={ref}
401404
className={props.className || 'react-aria-TabPanels'}>
402405
<Collection {...props} />

0 commit comments

Comments
 (0)