From dc0e8069229df878cfd89c3ce96523c58f60942a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 3 Aug 2023 22:37:29 +0300 Subject: [PATCH] Refactor #4231 --- components/lib/basecomponent/BaseComponent.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 934cddc9e..461c1aeb7 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -454,10 +454,14 @@ export default { const datasetPrefix = 'data-pc-'; const self = this._getPTClassValue(obj, key, params); const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params)) : undefined; - const merged = mergeProps(self, globalPT, { - ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }), - [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key) - }); + const merged = mergeProps( + self, + globalPT, + key !== 'transition' && { + ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }), + [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key) + } + ); return merged; /*