From c00a798034a86cb9e86937d043291c05ad200d9d Mon Sep 17 00:00:00 2001 From: mohamedsalem401 Date: Mon, 23 Jun 2025 16:11:32 +0300 Subject: [PATCH] Add skip resolve to get Attributes --- packages/core/src/dom_components/model/Component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/core/src/dom_components/model/Component.ts b/packages/core/src/dom_components/model/Component.ts index 437918e44..fa0cace32 100644 --- a/packages/core/src/dom_components/model/Component.ts +++ b/packages/core/src/dom_components/model/Component.ts @@ -867,10 +867,14 @@ export default class Component extends StyleableModel { * Return all component's attributes * @return {Object} */ - getAttributes(opts: { noClass?: boolean; noStyle?: boolean } = {}) { + getAttributes(opts: { noClass?: boolean; noStyle?: boolean; skipResolve?: boolean } = {}) { const { em } = this; const classes: string[] = []; - const attributes = { ...this.get('attributes') }; + const dynamicValues = opts.skipResolve ? this.dataResolverWatchers.getDynamicAttributesDefs() : {}; + const attributes = { + ...this.get('attributes'), + ...dynamicValues, + }; const sm = em?.Selectors; const id = this.getId();