diff --git a/components/lib/componentbase/ComponentBase.js b/components/lib/componentbase/ComponentBase.js index 83b8c8ccbf..aeb24e2ed6 100644 --- a/components/lib/componentbase/ComponentBase.js +++ b/components/lib/componentbase/ComponentBase.js @@ -519,11 +519,14 @@ export const ComponentBase = { const getPTClassValue = (...args) => { const value = getOptionValue(...args); + if (Array.isArray(value)) return { className: classNames(...value) }; if (ObjectUtils.isString(value)) return { className: value }; + if (value?.hasOwnProperty('className') && Array.isArray(value.className)) { return { className: classNames(...value.className) }; } + return value; };