From 827787ff0005702270a02649f00f9dd4230f7626 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Mon, 16 Sep 2024 14:13:33 +0100 Subject: [PATCH] Refactor #6408 --- packages/core/src/basecomponent/BaseComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/basecomponent/BaseComponent.vue b/packages/core/src/basecomponent/BaseComponent.vue index eda960a14..5671d6818 100644 --- a/packages/core/src/basecomponent/BaseComponent.vue +++ b/packages/core/src/basecomponent/BaseComponent.vue @@ -84,7 +84,6 @@ export default { this.rootEl = findSingle(this.$el, `[data-pc-name="${toFlatCase(this.$.type.name)}"]`); if (this.rootEl) { - this.rootEl.setAttribute(this.$attrSelector, ''); this.rootEl.$pc = { name: this.$.type.name, attrSelector: this.$attrSelector, ...this.$params }; } @@ -233,7 +232,8 @@ export default { key !== 'transition' && { ...(key === 'root' && { [`${datasetPrefix}name`]: toFlatCase(isExtended ? this.pt?.['data-pc-section'] : this.$.type.name), - ...(isExtended && { [`${datasetPrefix}extend`]: toFlatCase(this.$.type.name) }) + ...(isExtended && { [`${datasetPrefix}extend`]: toFlatCase(this.$.type.name) }), + [`${this.$attrSelector}`]: '' }), [`${datasetPrefix}section`]: toFlatCase(key) }