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

276
Visualizações
SVG element in list, when I hide the first parent, all of next SVG in each section will be hidden too, but not the container

I face a strange bug with Next. With getServerSideProps, I made a request to my api folder, this result a simple JSON. All is good.

I display the content perfectly, no problem.

I put on the parent element a onClick attribute, who call a function of my main file No problem, all is good too.

But, in this function, I ask to hide the children of the global element. It works, but, when it's the first occurence of the list, all others SVG in the list get hidden too, but in fact, in CSS, nothing appears.

Do you know why ?

I post with this a Vercel link, GitHub repo, and screens.

I solved this, by changing the SVG element, with a <Image/> element... But it's not clean...

Vercel Link : Vercel

GitHub Repo : GitHub

Screen 1
Initial

Screen 2
Click on first element

Screen 3
Click on second element

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

A quick fix, but isn't clean for me... Replace svg component by ... And it's work. Maybe a bug with id on SVG elements.

about 4 years ago · Juan Pablo Isaza Relatório
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