We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0971d9f commit c82151dCopy full SHA for c82151d
src/App.vue
@@ -7,12 +7,12 @@
7
<form>
8
<div class="form-group">
9
<label for="title">Title</label>
10
- <input type="text" class="form-control" id="title" v-model="post.title">
+ <input type="text" class="form-control" id="title" v-model.trim="post.title">
11
</div>
12
13
14
<label for="content">Content</label>
15
- <textarea class="form-control" id="content" v-model="post.content" cols="30" rows="10"></textarea>
+ <textarea class="form-control" id="content" v-model.lazy.trim="post.content" cols="30" rows="10"></textarea>
16
17
18
0 commit comments