Fixed to trim the summary when it is changed in the summary editor.

This commit is contained in:
依瑪貓 2023-03-03 23:42:47 +08:00
parent 78a62a9575
commit f8e9871300

View File

@ -180,6 +180,7 @@ class SummaryEditor {
* *
*/ */
#onSummaryChange() { #onSummaryChange() {
this.summary.value = this.summary.value.trim();
for (const tab of [this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) { for (const tab of [this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) {
if (tab.populate()) { if (tab.populate()) {
break; break;