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:
依瑪貓 2023-04-03 10:37:15 +08:00
parent e1a0380628
commit c3fc6d9a87

View File

@ -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);
} }
/** /**