2
0
Fork 0

fix: stop auto-trim for feedback message, user name

it's a good idea perhaps, but annoying
This commit is contained in:
Lance Edgar 2024-08-28 19:34:14 -05:00
parent 8f1eca6f48
commit 29a0d6ba24

View file

@ -452,7 +452,7 @@
<b-field label="User Name"
:type="userName && userName.trim() ? null : 'is-danger'">
<b-input v-model.trim="userName"
<b-input v-model="userName"
% if request.user:
disabled
% endif
@ -467,7 +467,7 @@
<b-field label="Message"
:type="message && message.trim() ? null : 'is-danger'">
<b-input type="textarea"
v-model.trim="message"
v-model="message"
ref="textarea" />
</b-field>
</section>
@ -530,7 +530,7 @@
return {
referrer: this.referrer,
user_uuid: this.userUUID,
user_name: this.userName,
user_name: this.userName.trim(),
message: this.message.trim(),
...this.getExtraParams(),
}