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();