Browse Source

Fix tests

collection-component
mohamedsalem401 2 years ago
parent
commit
c3cd2a0411
  1. 5
      packages/core/src/dom_components/model/Component.ts

5
packages/core/src/dom_components/model/Component.ts

@ -306,8 +306,11 @@ export default class Component extends StyleableModel<ComponentProperties> {
this.opt = { ...opt }; this.opt = { ...opt };
this.em = em!; this.em = em!;
this.config = opt.config || {}; this.config = opt.config || {};
this.addAttributes({ const dynamicAttributes = this.componentDVListener.getDynamicAttributesDefs();
this.setAttributes({
...(result(this, 'defaults').attributes || {}), ...(result(this, 'defaults').attributes || {}),
...(this.get('attributes') || {}),
...dynamicAttributes,
}); });
this.ccid = Component.createId(this, opt); this.ccid = Component.createId(this, opt);
this.preInit(); this.preInit();

Loading…
Cancel
Save