- commit
- 712764601927ea70bcf6e25c65875cbd193ed1d5
- parent
- d80b97b77b625a0f59fec3612509f84671763b0d
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-09-20 02:17
tags: trim value
Diffstat
| M | tags.js | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/tags.js b/tags.js
@@ -85,9 +85,9 @@ export class TagInput {
85 85 }
86 86
87 87 onchange(event) {
88 -1 if (this.input.value) {
-1 88 if (this.input.value.trim()) {
89 89 event.preventDefault();
90 -1 this.setValue(this.input.value);
-1 90 this.setValue(this.input.value.trim());
91 91 }
92 92 }
93 93