Revised the onOpen method of the JavaScript DescriptionEditor editor, to clear the tab planes after the confirmed account is set, so that it works in an environment where the confirmed account is already set.
This commit is contained in:
parent
e1a0380628
commit
c3fc6d9a87
@ -303,8 +303,11 @@ class DescriptionEditor {
|
|||||||
*/
|
*/
|
||||||
onOpen() {
|
onOpen() {
|
||||||
this.description = this.lineItemEditor.description === null? "": this.lineItemEditor.description;
|
this.description = this.lineItemEditor.description === null? "": this.lineItemEditor.description;
|
||||||
this.#onDescriptionChange();
|
|
||||||
this.#setConfirmedAccount();
|
this.#setConfirmedAccount();
|
||||||
|
this.#onDescriptionChange();
|
||||||
|
if (this.#isAccountConfirmed) {
|
||||||
|
this.selectAccount(this.#confirmedAccount);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -320,7 +323,6 @@ class DescriptionEditor {
|
|||||||
} else {
|
} else {
|
||||||
this.#confirmedAccount = null;
|
this.#confirmedAccount = null;
|
||||||
}
|
}
|
||||||
this.selectAccount(this.#confirmedAccount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user