pull/6416/head
Mert Sincan 2024-09-16 14:13:33 +01:00
parent 055732d385
commit 827787ff00
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}