I am trying to call onClick function on DropdownItem, it's working outside of map function but inside map function it's not working without any errors .
How to implement that?
ReactJs and Atlaskit packages I have used.
<Dropdown isOpen={this.state.dropdownOpen} toggle={this.toggle}>
<DropdownToggle caret>Dropdown</DropdownToggle>
<DropdownMenu>
<DropdownItem header>Header</DropdownItem>
<DropdownItem disabled>Action</DropdownItem>
<DropdownItem>Another Action</DropdownItem>
<DropdownItem divider />
<DropdownItem> <div onClick={() => console.log('This will fire!')}>
Another Action
</div></DropdownItem>
</DropdownMenu>
</Dropdown>