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

131
Views
Override element type in React

I have two nested Patternfly 4 components, specifically DualListSelector that uses TreeView as its items. My problem is that both these contain <button> and I am seeing those

Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.

errors in console. I was looking through the sources for these components but it seems I can't configure either places to use a different element type; is there any hack to override it?

(Note: I know that DualListSelector supports tree view natively, but the behaviour had some shortcomings in my use case that led me to do the tree view on my own.)

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