(index, disabled)
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…