MCPcopy Index your code
hub / github.com/flyfloor/react-component / handleItemClick

Function handleItemClick

component/Menu.js:53–60  ·  view source on GitHub ↗
(index, disabled)

Source from the content-addressed store, hash-verified

51 },
52
53 handleItemClick(index, disabled){
54 if (disabled) return;
55 const {onChange} = this.props;
56 if (onChange) onChange(index);
57 this.setState({
58 current: index,
59 }, () => this.closeSubMenu());
60 },
61
62 componentWillReceiveProps(nextProps) {
63 if (nextProps.current !== this.props.current) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…