Skip to content

Commit

Permalink
Merge pull request #90 from bcgov/bugfix/backspace-text-field
Browse files Browse the repository at this point in the history
Remove .trim from form components
  • Loading branch information
kyle1morel authored Jun 11, 2024
2 parents 7b06e47 + 58da838 commit 9635f3a
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 9635f3a

Please sign in to comment.