From ba75df5f3d23a48d9a881db46a269cddc6fe4551 Mon Sep 17 00:00:00 2001 From: habubey Date: Thu, 12 Oct 2023 12:31:56 +0300 Subject: [PATCH] Fix #5087: Panel - Missing props.className passthrough --- components/lib/panel/Panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/panel/Panel.js b/components/lib/panel/Panel.js index 5a2c4b4e05..7782d7a509 100644 --- a/components/lib/panel/Panel.js +++ b/components/lib/panel/Panel.js @@ -1,5 +1,6 @@ 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'; @@ -7,7 +8,6 @@ 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); @@ -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')