From 984dcd9bca827b686ad897f0be00e206fa0377d5 Mon Sep 17 00:00:00 2001 From: Kether Saturnius Date: Mon, 18 Nov 2024 15:39:40 +1100 Subject: [PATCH] return clean attribute selector when in node environments --- packages/core/src/basecomponent/BaseComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/basecomponent/BaseComponent.vue b/packages/core/src/basecomponent/BaseComponent.vue index 937dac468..22c8c3c03 100644 --- a/packages/core/src/basecomponent/BaseComponent.vue +++ b/packages/core/src/basecomponent/BaseComponent.vue @@ -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');