Skip to content

Commit

Permalink
Refactor #6408
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 16, 2024
1 parent 055732d commit 827787f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 827787f

Please sign in to comment.