Update BaseComponent.vue

pull/5507/head
mertsincan 2024-04-02 11:23:32 +01:00
parent 3dcf5558cd
commit 9e1bb1b950
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ export default {
this._hook('onBeforeMount');
},
mounted() {
// @todo - improve performance
const rootElement = DomHandler.findSingle(this.$el, `[data-pc-name="${ObjectUtils.toFlatCase(this.$.type.name)}"]`);
rootElement?.setAttribute(this.$attrSelector, '');