Browse Source

Render attributes for temporary components. Fixes #2010

pull/2062/head
Artur Arseniev 7 years ago
parent
commit
74300a1002
  1. 2
      src/dom_components/view/ComponentView.js
  2. 1
      src/utils/Sorter.js

2
src/dom_components/view/ComponentView.js

@ -355,8 +355,8 @@ module.exports = Backbone.View.extend({
},
render() {
if (this.modelOpt.temporary) return this;
this.renderAttributes();
if (this.modelOpt.temporary) return this;
this.renderChildren();
this.updateScript();
this.postRender();

1
src/utils/Sorter.js

@ -480,6 +480,7 @@ module.exports = Backbone.View.extend({
em.trigger('sorter:drag', {
target,
targetModel,
sourceModel,
dims,
pos,
x: rX,

Loading…
Cancel
Save