From 6880e5b6254d68096eb713fccd78fb69affd2e0c Mon Sep 17 00:00:00 2001 From: Katinka Hesselink Date: Mon, 17 Dec 2018 17:18:43 +0100 Subject: [PATCH 1/2] explain what 'trim' does 'This trims out white-space from the input. ' --- src/v2/guide/forms.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v2/guide/forms.md b/src/v2/guide/forms.md index d8f35c02e3..c3f0acbc5b 100644 --- a/src/v2/guide/forms.md +++ b/src/v2/guide/forms.md @@ -378,6 +378,8 @@ If you want user input to be trimmed automatically, you can add the `trim` modif ``` +This trims out white-space from the input. + ## `v-model` with Components > If you're not yet familiar with Vue's components, you can skip this for now. From d46032e6ddf3b714d275aca25515e4417191a35c Mon Sep 17 00:00:00 2001 From: Chris Fritz Date: Wed, 19 Dec 2018 12:53:18 -0500 Subject: [PATCH 2/2] simplify language in v-model.trim explanation --- src/v2/guide/forms.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/v2/guide/forms.md b/src/v2/guide/forms.md index c3f0acbc5b..2465e864eb 100644 --- a/src/v2/guide/forms.md +++ b/src/v2/guide/forms.md @@ -372,14 +372,12 @@ This is often useful, because even with `type="number"`, the value of HTML input ### `.trim` -If you want user input to be trimmed automatically, you can add the `trim` modifier to your `v-model` managed inputs: +If you want whitespace from user input to be trimmed automatically, you can add the `trim` modifier to your `v-model`-managed inputs: ```html ``` -This trims out white-space from the input. - ## `v-model` with Components > If you're not yet familiar with Vue's components, you can skip this for now.