I got this vue loop that cycles around all games to create a form. The games are valid up to a certain date-time, so I think using an <input type="datetime-local"... /> would do the work, the data is received in format "YYYY-mm-dd HH:mm" ... so I have:
<form ...>
<div v-for="game in games" :key="game.id">
<input ...> Home and Away selectors
<input
type="datetime-local"
name=...
v-model="game.valid_until_date"
/>
...
</div>
</form>
My first problem is that I'm not getting the binding, that is value property stays null, I thought it had something to do with the string format. All the other variables I got from the database are working fine, populating my forms as expected.
Of course if I use a simpler <input type="text"... /> things works as expected