Browse Source

Pass options in getComponentsFromDefs

pull/4141/head
Artur Arseniev 5 years ago
parent
commit
bed2d5e2d7
  1. 4
      src/dom_components/model/Components.js

4
src/dom_components/model/Components.js

@ -22,7 +22,7 @@ const getComponentsFromDefs = (items, all = {}, opts = {}) => {
if (id && all[id]) { if (id && all[id]) {
result = all[id]; result = all[id];
tagName && result.set({ tagName }, { silent: true }); tagName && result.set({ tagName }, { ...opts, silent: true });
} }
if (components) { if (components) {
@ -30,7 +30,7 @@ const getComponentsFromDefs = (items, all = {}, opts = {}) => {
if (isFunction(result.components)) { if (isFunction(result.components)) {
const cmps = result.components(); const cmps = result.components();
cmps.length > 0 && cmps.reset(newComponents); cmps.length > 0 && cmps.reset(newComponents, opts);
} else { } else {
result.components = newComponents; result.components = newComponents;
} }

Loading…
Cancel
Save