Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
How can the npm package react-virtualized be used with a resizable form input?

react-virtualized exposes the relevant components List, CellMeasurer and CellMeasurerCache. These can be used together reliably to create a virtualised list with dynamically calculated row heights as long as no form components are used. I am having great difficulty getting the API to respond to multiline form inputs, the heights calculated correspond to to the size of each component had the multiline inputs not expanded to accommodate the text passed in from state.

const cache = new CellMeasurerCache({
   fixedWidth: true,
   minHeight: 56,
})

 const rowRenderer = ({index, key, parent, style}) => {

// State pulled from API

       return <CellMeasurer
           cache={cache}
           columnIndex={0}
           key={key}
           rowIndex={index}
           parent={parent}
           >
           {({registerChild}) => (
               <div style={style}>
                   <Input multiline value={state.elements[index].text}/>
               </div>
           )}
       </CellMeasurer>
   }

return  <List
  width={650}
  height={600}
  deferredMeasurementCache={cache}
  overscanRowCount={2}
  rowHeight={cache.rowHeight}
  rowCount={state.elements.length}
  rowRenderer={rowRenderer}
  />
}

thanks

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda