Fix bugs in previous change
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,12 +19,9 @@ class EditorLink extends EditorEntryBase {
|
||||
|
||||
afterDomAdd() {
|
||||
this.nodes_.selectNext();
|
||||
if (this.nodes_.getSelected().getValue() != '') {
|
||||
// Select second link if first is pre-filled
|
||||
this.nodes_.selectNext();
|
||||
}
|
||||
if (this.nodes_.getSelected().getValue() == '') {
|
||||
this.nodes_.getSelected().xArchObj.startEdit();
|
||||
let node = this.nodes_.getSelected().xArchObj;
|
||||
if (node.getLabel() == '') {
|
||||
node.startEdit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user