Hi, I'm using a custom MenuItem under NavDropdown like below. But I couldn't get it closed when clicking the CustomMenuItem with NavDropdown. Previously with DropDownButton, I can use this.refs.dropdown.setDropdownState(false). Any other work around here? Thanks.
You need to invoke the this.props.onSelect that's passed down from the Dropdown parent.
Can you elaborate how to invoke it? What's the implementation?
杨小林
在 2015年9月11日,12:11,Jimmy Jia [email protected] 写道:
You need to invoke the this.props.onSelect that's passed down from the Dropdown parent.
—
Reply to this email directly or view it on GitHub.
Most helpful comment
https://github.com/react-bootstrap/react-bootstrap/blob/v0.25.2/src/MenuItem.js#L23