From f5207ba65db7017fc4fddc28ac2b257f2d24d4a4 Mon Sep 17 00:00:00 2001 From: gucal Date: Tue, 9 Apr 2024 11:39:26 +0300 Subject: [PATCH] Misc Section - classnames not being set in unstyled mode #6329 --- components/lib/blockui/BlockUI.js | 2 +- components/lib/blockui/BlockUIBase.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/blockui/BlockUI.js b/components/lib/blockui/BlockUI.js index e5872a593d..777d1b489a 100644 --- a/components/lib/blockui/BlockUI.js +++ b/components/lib/blockui/BlockUI.js @@ -124,7 +124,7 @@ export const BlockUI = React.forwardRef((inProps, ref) => { id: props.id, ref: elementRef, style: props.containerStyle, - className: cx('root'), + className: classNames(props.containerClassName, cx('root')), 'aria-busy': props.blocked }, BlockUIBase.getOtherProps(props), diff --git a/components/lib/blockui/BlockUIBase.js b/components/lib/blockui/BlockUIBase.js index fd5e10a005..0a3e3f7e75 100644 --- a/components/lib/blockui/BlockUIBase.js +++ b/components/lib/blockui/BlockUIBase.js @@ -2,7 +2,7 @@ import { ComponentBase } from '../componentbase/ComponentBase'; import { classNames } from '../utils/Utils'; const classes = { - root: ({ props }) => classNames('p-blockui-container', props.containerClassName), + root: 'p-blockui-container', mask: ({ props }) => classNames('p-blockui p-component-overlay p-component-overlay-enter', { 'p-blockui-document': props.fullScreen