Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

241
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda