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

This commit is contained in:
imacat committed 2023-04-03 19:50:46 +08:00
1 parent ab29166f1e
commit f2a2fcdd32
1 file changed
+1
@@ -200,6 +200,7 @@ class DescriptionEditor {
*/
#onDescriptionChange() {
this.#resetTabPlanes();
this.#selectedAccount = null;
this.description = this.description.trim();
for (const tabPlane of [this.tabPlanes.recurring, this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) {
if (tabPlane.populate()) {