Browse Source

Update tagName on component text update

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

3
src/dom_components/model/Components.js

@ -16,12 +16,13 @@ const getComponentsFromDefs = (items, all = {}, opts = {}) => {
const itms = isArray(items) ? items : [items];
return itms.map(item => {
const { attributes = {}, components } = item;
const { attributes = {}, components, tagName } = item;
const { id } = attributes;
let result = item;
if (id && all[id]) {
result = all[id];
tagName && result.set({ tagName }, { silent: true });
}
if (components) {

Loading…
Cancel
Save