(event, data)
| 127 | }; |
| 128 | |
| 129 | const handleRightClick: ITreeProps['onRightClick'] = (event, data) => { |
| 130 | if ((event.target as HTMLElement).nodeName !== 'INPUT') { |
| 131 | event.preventDefault(); |
| 132 | const menuItems = onRightClick?.(data) || []; |
| 133 | |
| 134 | menuItems.length && |
| 135 | contextView?.show(getEventPosition(event), () => ( |
| 136 | <Menu |
| 137 | role="menu" |
| 138 | onClick={(_, item) => handleMenuClick(item!, data)} |
| 139 | data={menuItems} |
| 140 | /> |
| 141 | )); |
| 142 | } |
| 143 | }; |
| 144 | |
| 145 | const handleUpdateFile = ( |
| 146 | e: HTMLInputElement, |
nothing calls this directly
no test coverage detected