Skip to content

Commit

Permalink
Slipstream fix to remove .trim from form components
Browse files Browse the repository at this point in the history
Removed internal form components from the cherrypick

Bug noticed by navs where backspacing caused the whitespace to be removed automatically

(cherry picked from commit d788649)
  • Loading branch information
kyle1morel authored and sanjaytkbabu committed Jun 6, 2024
1 parent 7b06e47 commit 58da838
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/form/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const { errorMessage, value } = useField<string>(toRef(props, 'name'));
<div class="field col">
<div class="flex align-items-center">
<Checkbox
v-model.trim="value"
v-model="value"
binary
:aria-describedby="`${name}-help`"
:name="name"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/EditableDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const { errorMessage, value } = useField<string>(toRef(props, 'name'));
{{ label }}
</label>
<Dropdown
v-model.trim="value"
v-model="value"
editable
:aria-describedby="`${name}-help`"
:name="name"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/InputMask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const { errorMessage, value } = useField<string>(toRef(props, 'name'));
{{ label }}
</label>
<InputMask
v-model.trim="value"
v-model="value"
:aria-describedby="`${name}-help`"
:name="name"
:mask="mask"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const fieldActive: Ref<boolean> = ref(false);
{{ label }}
</label>
<InputNumber
v-model.trim="value"
v-model="value"
:aria-describedby="`${name}-help`"
:name="name"
:placeholder="placeholder"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/InputText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const { errorMessage, value } = useField<string>(toRef(props, 'name'));
{{ label }}
</label>
<InputText
v-model.trim="value"
v-model="value"
:aria-describedby="`${name}-help`"
:name="name"
:placeholder="placeholder"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/Password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const { errorMessage, value } = useField<string>(toRef(props, 'name'));
{{ props.label }}
</label>
<Password
v-model.trim="value"
v-model="value"
:aria-describedby="`${props.name}-help`"
:name="props.name"
:type="props.type"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/form/TextArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const { errorMessage, value } = useField<string>(toRef(props, 'name'));
{{ label }}
</label>
<Textarea
v-model.trim="value"
v-model="value"
:aria-describedby="`${name}-help`"
:name="name"
:placeholder="placeholder"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ watch(
<td class="col-9">
Submissions by assigned navigator
<Dropdown
v-model.trim="statisticFilters.userId"
v-model="statisticFilters.userId"
class="w-7"
editable
:options="assigneeOptions"
Expand Down

0 comments on commit 58da838

Please sign in to comment.