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

113
Visualizações
Material-ui Dialog disappears and reappears when TextField are changed

I have a dialog with a bunch of TextFields populated by a JSON response form an API call. I have an issue where when I edit a TextField by adding or removing text, the dialog disappears and then reappears. This happens after any key on the keyboard is pressed while there is one TextField in focus. After the dialog reappears, the focus on the desired TextField is lost, but the added/removed character is persistent.

My code is quite long so I will only include a short example of my JSON response here. The rest of the code can be found in code sandbox.

My goal with this code is to open the Dialog from a Material-Table and populate the fields with data from the chosen row and allow the user edit data. In its current state, opening the dialog and populating the fields from the table works perfectly and is not included in the code sandbox for the sake of length.

My JSON response only contains one nested array which is not currently in use:

{
  "Domain": "Stack Overflow",
  "Experience": "SO",
  "SizingContact": "Ciaran Crowley",
  "SizingComments": "Test update 2",
  "expensetypes": [
    "Effort",
    "Other Opex - Other",
    "Other Opex - Sundry"
  ]
}
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