return clean attribute selector when in node environments

pull/6798/head
Kether Saturnius 2024-11-18 15:39:40 +11:00
parent 180c921c89
commit 984dcd9bca
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export default {
const valueInConfig = _useptInConfig ? this.$primevue?.config?.pt?.value : this.$primevue?.config?.pt;
(valueInConfig || originalValueInConfig)?.[this.$.type.name]?.hooks?.['onBeforeCreate']?.();
this.$attrSelector = uuid('pc');
this.$attrSelector = typeof process === "object" ? 'pc' : uuid('pc');
},
created() {
this._hook('onCreated');