diff --git a/packages/core/src/dom_components/model/Component.ts b/packages/core/src/dom_components/model/Component.ts index 08421aff2..33a10cfa4 100644 --- a/packages/core/src/dom_components/model/Component.ts +++ b/packages/core/src/dom_components/model/Component.ts @@ -306,8 +306,11 @@ export default class Component extends StyleableModel { this.opt = { ...opt }; this.em = em!; this.config = opt.config || {}; - this.addAttributes({ + const dynamicAttributes = this.componentDVListener.getDynamicAttributesDefs(); + this.setAttributes({ ...(result(this, 'defaults').attributes || {}), + ...(this.get('attributes') || {}), + ...dynamicAttributes, }); this.ccid = Component.createId(this, opt); this.preInit();