From f8e9871300e79c58fed5b2519efedb39d393d3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 3 Mar 2023 23:42:47 +0800 Subject: [PATCH] Fixed to trim the summary when it is changed in the summary editor. --- src/accounting/static/js/summary-editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/accounting/static/js/summary-editor.js b/src/accounting/static/js/summary-editor.js index afa2ee1..07af029 100644 --- a/src/accounting/static/js/summary-editor.js +++ b/src/accounting/static/js/summary-editor.js @@ -180,6 +180,7 @@ class SummaryEditor { * */ #onSummaryChange() { + this.summary.value = this.summary.value.trim(); for (const tab of [this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) { if (tab.populate()) { break;