8000 fix(CListGroup): allow passing props by Danikokonn · Pull Request #413 · coreui/coreui-react · GitHub
[go: up one dir, main page]

Skip to content

fix(CListGroup): allow passing props #413

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
FIx CListGroup not passing props
  • Loading branch information
Danikokonn committed Oct 10, 2024
commit 9265cb446755156989dde6cbb4a146dae89009a0
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface CListGroupProps extends HTMLAttributes<HTMLDivElement | HTMLULi
export const CListGroup: PolymorphicRefForwardingComponent<'ul', CListGroupProps> = forwardRef<
HTMLDivElement | HTMLUListElement,
CListGroupProps
>(({ children, as: Component = 'ul', className, flush, layout }, ref) => {
>(({ children, as: Component = 'ul', className, flush, layout, ...rest }, ref) => {
return (
<Component
className={classNames(
Expand All @@ -43,6 +43,7 @@ export const CListGroup: PolymorphicRefForwardingComponent<'ul', CListGroupProps
},
className,
)}
{...rest}
ref={ref}
>
{children}
Expand Down
0