Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Los valores del siguiente formulario Js desaparecen

Tengo un formulario que toma datos además de imágenes. Todo funciona bien hasta que sales de la pestaña y vuelves o en el móvil, cuando intentas subir imágenes, se abre una carpeta en pantalla completa donde puedes elegir. Una vez de vuelta al formulario, está vacío. Me pregunto por qué hace eso. Incluso navegar a otra pestaña y regresar borra todo el formulario

Formulario.js

 import React, { useState } from "react"; import styled from "styled-components"; import DragAndDrop from "./DragAndDrop"; function Form({ category }) { const [Name, setName] = useState(""); const [Title, setTitle] = useState(""); return ( <> <div> <StyledForm onSubmit={SendPost}> <div className="mb-14"> <H2>PRODUCT</H2> <StyledP type="Name : "> <StyledInput value={Name} placeholder="TYPE Name product name" onChange={(e) => setName(e.target.value)} /> </StyledP> <StyledP type="Title : "> <StyledInput value={Title} placeholder="Type the Title" onChange={(e) => setTitle(e.target.value)} required /> </StyledP> <StyledP type="Import photos (10 Photos Max) : " /> <div className="mt-2"> <DragAndDrop /> </div> </div> <div className="-mt-8 flex justify-center"> <button type="submit">Post</button> </div> </StyledForm> </div> </> ); } const H2 = styled.h2` `; const StyledInput = styled.input` `; const StyledP = styled.p` `; const StyledForm = styled.form` `; export default Form;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!