Skip to content

Commit

Permalink
edit name on single click in opint editor. Fixes #1022 (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Apr 28, 2017
1 parent 4c876dd commit 4fe4dd1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ define([
this.enableTooltip(this._node.baseName, 'dark');
}
DecoratorBase.prototype.initialize.call(this);
this.$name.on('dblclick', this.editName.bind(this));
this.$name.on('click', () => {
// Operations must already be selected. Otherwise, they will animate
// after the edit name box is created and it will be placed incorrectly
if (this.expanded || !this.isOperation()) {
this.editName();
}
});
};

OpIntDecorator.prototype.AttributeField = AttributeField;
Expand Down

0 comments on commit 4fe4dd1

Please sign in to comment.