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

240
Vistas
Coreui (v4) alert reloads the page when using the dismissible property inside a form

I'm using an alert inside a form, but when I close the alert (using dismissible) the page reloads

<CForm>
...
<CAlert dismissible visible={cipherError}>
          Validation failed, please contact support
</CAlert>
...
</CForm>

I know there is an onClose property that acts when the user closes the Alert, but that function doesn't pass the event, so I can't use event.prevent.default()

onClose Callback fired when the component requests to be closed. () => void

You can see the documentation here

How can I prevent the page from reloading but the user can close the alert?

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