Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

290
Visualizações
Vue: How to populate an input datetime-local inside a loop?

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

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda