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() { render() {
if (this.modelOpt.temporary) return this;
this.renderAttributes(); this.renderAttributes();
if (this.modelOpt.temporary) return this;
this.renderChildren(); this.renderChildren();
this.updateScript(); this.updateScript();
this.postRender(); this.postRender();

1
src/utils/Sorter.js

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

Loading…
Cancel
Save