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

365
Views
Material Ui, MUI, Diálogo, ScrollTop

Estuve jugando mucho con scrollTop y el componente Diálogo ( un modal fijo de pantalla completa ) de Material-Ui durante algún tiempo ... y no pude hacer que scrollTop funcionara. Cuando hago clic en el botón Ir hacia abajo, siempre me da indefinido o no funciona en absoluto en el contenedor desplazable .

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Todo lo que se necesitaba era necesario

Asegúrese de que el div dentro del Diálogo se haya desbordado

 <Dialog fullScreen open={open} onClose={handleClose}> <div ref={ref} //MOST IMPORTANT style={{ backgroundColor: 'red', overflowY: 'auto', height: '100%' }}>

**Y un onClick**

 <Button autoFocus color="inherit" //HERE onClick={() => { const div = ref.current; div.scrollTop = 800; }} >GO DOWN </Button>

Aquí hay un ejemplo https://codesandbox.io/s/fullscreendialog-material-demo-forked-cf8u6?file=/demo.js:2201-2434

about 4 years ago · Juan Pablo Isaza Report
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!