Skip to content
Snippets Groups Projects
Commit 0d22c929 authored by Laczkó Csongor Loránd's avatar Laczkó Csongor Loránd
Browse files

feat(frontend): Add input trimming for dog addition and editing

parent fe34479e
Branches
Tags
No related merge requests found
...@@ -68,6 +68,9 @@ export default { ...@@ -68,6 +68,9 @@ export default {
} }
}, },
validateForm() { validateForm() {
this.dog.name = this.dog.name.trim();
this.dog.breed = this.dog.breed.trim();
const name = this.dog.name; const name = this.dog.name;
const breed = this.dog.breed; const breed = this.dog.breed;
const age = this.dog.age; const age = this.dog.age;
......
...@@ -73,6 +73,9 @@ export default { ...@@ -73,6 +73,9 @@ export default {
} }
}, },
validateForm() { validateForm() {
this.dog.name = this.dog.name.trim();
this.dog.breed = this.dog.breed.trim();
const name = this.dog.name; const name = this.dog.name;
const breed = this.dog.breed; const breed = this.dog.breed;
const age = this.dog.age; const age = this.dog.age;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment