Revised the "#onDescriptionChange" method to also reset the selected account in the JavaScript DescriptionEditor editor.

This commit is contained in:
依瑪貓 2023-04-03 10:21:50 +08:00
parent ab29166f1e
commit f2a2fcdd32

View File

@ -200,6 +200,7 @@ class DescriptionEditor {
*/ */
#onDescriptionChange() { #onDescriptionChange() {
this.#resetTabPlanes(); this.#resetTabPlanes();
this.#selectedAccount = null;
this.description = this.description.trim(); this.description = this.description.trim();
for (const tabPlane of [this.tabPlanes.recurring, this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) { for (const tabPlane of [this.tabPlanes.recurring, this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) {
if (tabPlane.populate()) { if (tabPlane.populate()) {