(item: any, menuIndex: number)
| 68 | } |
| 69 | |
| 70 | activeItem(item: any, menuIndex: number) { |
| 71 | const activeOptions = this.activeOptions(); |
| 72 | |
| 73 | this.state.activeValue.splice(menuIndex, activeOptions.length, item.value); |
| 74 | |
| 75 | this.forceUpdate(); |
| 76 | |
| 77 | if (this.parent().props.changeOnSelect) { |
| 78 | this.parent().handlePick(this.state.activeValue, false); |
| 79 | } else { |
| 80 | this.parent().handleActiveItemChange(this.state.activeValue); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /* Computed Methods */ |
| 85 |
no test coverage detected