mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Update BaseComponent.vue
This commit is contained in:
parent
3dcf5558cd
commit
9e1bb1b950
1 changed files with 1 additions and 0 deletions
|
@ -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, '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue