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

389
Views
React - I'm using the onclick option which requires a variable from a component that dynamically renders a series of elements, but it doesn't work
    dropdownClick =(value ) => {
            this.setState({searchGroup: value.name, elementSelected: value})
        }

( I tried inserting the setState block inside the onClick and it do not worck too )


    <InputGroup className="mb-2">
        <Input value={this.state.searchGroup} onChange={(e) => this.filtergroups(e.target.value)} />
        <InputGroupButtonDropdown addonType="append" isOpen={this.state.drop} toggle={this.AbrirCerrarDropdown} >
        <DropdownToggle caret className="red button">Grupos</DropdownToggle>
        <DropdownMenu>{this.state.skillGroupsFiltered.map((element, index) => (
            <DropdownItem key={index} onClick={() => this.dropdownClick(element)}>{element.name}</DropdownItem>
        ))}
        </DropdownMenu>
    </InputGroup>


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!