Don't start editing pre-filled fields

This commit is contained in:
Ian Gulliver
2019-07-11 16:15:53 +00:00
parent e81f3b9868
commit c80f8c57de
2 changed files with 10 additions and 2 deletions

View File

@@ -19,7 +19,13 @@ class EditorLink extends EditorEntryBase {
afterDomAdd() {
this.nodes_.selectNext();
this.nodes_.getSelected().xArchObj.startEdit();
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();
}
}
serialize() {