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

231
Views
React-Window con filas de tablas plegables MUI

Busco ayuda para resolver el problema que encontré recientemente mientras trabajaba con React-Window y MUI Collapsible Table Rows.

En general, la fila de representación de la ventana de reacción para cada uno de mis elementos en la matriz, con parte del contenido oculto hasta que presionemos la flecha. Al pulsar, debajo de nuestra columna aparece una nueva con contenido oculto.

 function Row({ index, style }) { const [showList, toggleShowList] = useState(false); return ( <Fragment> <TableRow sx={style}> <TableCell>Visable Row:{index}</TableCell> <TableCell> <IconButton aria-label="expand row" size="small" onClick={() => toggleShowList(!showList)} > {showList ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />} </IconButton> </TableCell> </TableRow> <TableRow sx={{ style, display: showList ? "table-row" : "none" }}> <TableCell>hidden row:{index}</TableCell> </TableRow> </Fragment> ); }

El ejemplo anterior se basa en la página del componente Tabla MUI . El problema surge cuando lo paso a React-Window porque muestra contenido oculto fuera de lugar.

Intento usar useRef() para calcular la altura de la fila, pero no tiene efecto en el elemento oculto .

Estoy abierto a sugerencias y soluciones. Creé un ejemplo en el código Sandbox con cómo funciona realmente y cómo (debería) quiero que funcione.

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!