Skip to content

Commit

Permalink
fix(TabPanel): Remove as={React.Fragment} prop
Browse files Browse the repository at this point in the history
Remove as={React.Fragment} prop, as this will throw a console error when headless ui attempt to pass down some basic html attributes
  • Loading branch information
pallendes committed Feb 21, 2024
1 parent de3f59c commit 5d65345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tab/tab-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export interface TabPanelProps {
}

export const TabPanel = ({ children }: TabPanelProps) => {
return <HeadlessTab.Panel as={React.Fragment}>{children}</HeadlessTab.Panel>;
return <HeadlessTab.Panel>{children}</HeadlessTab.Panel>;
};

0 comments on commit 5d65345

Please sign in to comment.