Skip to content Skip to sidebar Skip to footer

Reactstrap: Accessing The Id Of The Selected Dropdownitem

I have this dropdownList: { this.toggle(3);

Solution 1:

I have fixed this by passing the attribute productid inside the div:

 <DropdownItem>
                      {" "}
                      <div productid="0" onClick={this.changeValue}>
                        PURE BLACK MAT BLUETOOTH
                      </div>
                    </DropdownItem>

Post a Comment for "Reactstrap: Accessing The Id Of The Selected Dropdownitem"