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:
@ -303,8 +303,11 @@ class DescriptionEditor {
|
||||
*/
|
||||
onOpen() {
|
||||
this.description = this.lineItemEditor.description === null? "": this.lineItemEditor.description;
|
||||
this.#onDescriptionChange();
|
||||
this.#setConfirmedAccount();
|
||||
this.#onDescriptionChange();
|
||||
if (this.#isAccountConfirmed) {
|
||||
this.selectAccount(this.#confirmedAccount);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -320,7 +323,6 @@ class DescriptionEditor {
|
||||
} else {
|
||||
this.#confirmedAccount = null;
|
||||
}
|
||||
this.selectAccount(this.#confirmedAccount);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user