2👍
✅
There isn’t a type "postal_code" for the input tag in HTML, so when you’re setting it to that the browser doesn’t recognise it and probably ignores the input or doesn’t render it the way you want it to.
type="text"
should fix this for you, so it will be:
<div class="mt-4">
<InputLabel for="postal_code" value="Postal Code" />
<TextInput
id="postal_code"
type="text"
class="mt-1 block w-full"
v-model="form.email"
required
autocomplete="postal-code"
/>
<InputError class="mt-2" :message="form.errors.postal_code" /> <!-- Change this line to show postal_code errors -->
</div>
That should fix the input but you should also change the v-model to be v-model="form.postal_code"
to bind it and handle any error messages related to it correctly. Hope this helps!
Source:stackexchange.com