Skip to content

Commit

Permalink
Fix #5087: Panel - Missing props.className passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
habubey committed Oct 12, 2023
1 parent b479b88 commit ba75df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/panel/Panel.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import { PrimeReactContext } from '../api/Api';
import { useHandleStyle } from '../componentbase/ComponentBase';
import { CSSTransition } from '../csstransition/CSSTransition';
import { useMountEffect } from '../hooks/Hooks';
import { MinusIcon } from '../icons/minus';
import { PlusIcon } from '../icons/plus';
import { Ripple } from '../ripple/Ripple';
import { IconUtils, ObjectUtils, UniqueComponentId, mergeProps } from '../utils/Utils';
import { PanelBase } from './PanelBase';
import { useHandleStyle } from '../componentbase/ComponentBase';

export const Panel = React.forwardRef((inProps, ref) => {
const context = React.useContext(PrimeReactContext);
Expand Down Expand Up @@ -244,7 +244,7 @@ export const Panel = React.forwardRef((inProps, ref) => {
id: idState,
ref: elementRef,
style: props.style,
className: cx('root')
className: classNames(props.className, cx('root'))
},
PanelBase.getOtherProps(props),
ptm('root')
Expand Down

0 comments on commit ba75df5

Please sign in to comment.