From da5d3def1dc1343c6ba0353cfffc2cf4550317ae Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 27 Dec 2023 12:12:08 -0500 Subject: [PATCH] Lint fix (#5650) --- components/lib/componentbase/ComponentBase.js | 3 +++ 1 file changed, 3 insertions(+) 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; };