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

274
Views
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 answers
Answer question

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 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!