diff --git a/src/guide/essentials/forms.md b/src/guide/essentials/forms.md index 9a4ce5c3fd..6b61acc8c2 100644 --- a/src/guide/essentials/forms.md +++ b/src/guide/essentials/forms.md @@ -442,7 +442,7 @@ If you want user input to be automatically typecast as a number, you can add the ``` -If the value cannot be parsed with `parseFloat()`, then the original value is used instead. +If the value cannot be parsed with `parseFloat()`, then the original (string) value is used instead. In particular, if the input is empty (for instance after the user clearing the input field), an empty string is returned. This behavior differs from the [DOM property `valueAsNumber`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#valueasnumber). The `number` modifier is applied automatically if the input has `type="number"`.