Don't start editing pre-filled fields
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user