Fix bugs in previous change

This commit is contained in:
Ian Gulliver
2019-07-11 16:23:41 +00:00
parent c80f8c57de
commit 2cbaade0d5
2 changed files with 6 additions and 8 deletions

View File

@@ -22,8 +22,9 @@ class EditorGroup extends EditorEntryBase {
afterDomAdd() {
this.nodes_.selectNext();
if (this.nodes_.getSelected().getValue() == '') {
this.nodes_.getSelected().xArchObj.startEdit();
let node = this.nodes_.getSelected().xArchObj;
if (node.getLabel() == '') {
node.startEdit();
}
}