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

104
Views
Al hacer clic en el botón deshabilitado, se selecciona el siguiente elemento

Este código simple crea un botón deshabilitado:

 import { Grid, IconButton } from "@material-ui/core"; import ArrowBackIosIcon from "@material-ui/icons/ArrowBackIos"; export default function App() { const handleClick = (e) => { e.stopPropagation(); }; return ( <div className="App"> <Grid container> <Grid item>Before</Grid> <Grid item> <IconButton disabled onClick={handleClick}> <ArrowBackIosIcon /> </IconButton> </Grid> <Grid item>After</Grid> </Grid> </div> ); }

Pero al hacer clic en el botón, se selecciona el div "Después". He intentado evitarlo agregando un controlador de eventos, pero no ayuda.

¿Cómo puedo evitar que se seleccione "Después" al hacer clic en el botón habilitado?

aquí está mi CodeSandBox: https://codesandbox.io/s/focused-elion-1tmtz0

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

aquí hice cambios https://codesandbox.io/s/immutable-paper-2ilsfh

dejame saber si necesitas mas ayuda

about 4 years ago · Santiago Trujillo 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!