mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
textarea, remove every whitespace at line end
- whitespaces aren't needed at the end of the line, that's why String.trim() is already implemented at input fields
This commit is contained in:
parent
8c3ce4bb73
commit
4994f23134
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ InlinedForm = BlazeComponent.extendComponent({
|
|||
|
||||
getValue() {
|
||||
const input = this.find('textarea,input[type=text]');
|
||||
return this.isOpen.get() && input && input.value;
|
||||
return this.isOpen.get() && input && input.value.replaceAll(/\s +$/gm, '');
|
||||
},
|
||||
|
||||
events() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue