Update BaseComponent.vue
parent
3dcf5558cd
commit
9e1bb1b950
|
@ -74,6 +74,7 @@ export default {
|
||||||
this._hook('onBeforeMount');
|
this._hook('onBeforeMount');
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
// @todo - improve performance
|
||||||
const rootElement = DomHandler.findSingle(this.$el, `[data-pc-name="${ObjectUtils.toFlatCase(this.$.type.name)}"]`);
|
const rootElement = DomHandler.findSingle(this.$el, `[data-pc-name="${ObjectUtils.toFlatCase(this.$.type.name)}"]`);
|
||||||
|
|
||||||
rootElement?.setAttribute(this.$attrSelector, '');
|
rootElement?.setAttribute(this.$attrSelector, '');
|
||||||
|
|
Loading…
Reference in New Issue