diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 12699061c..9b054ee2a 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -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, '');