(e: ChangeEvent<HTMLInputElement>)
| 283 | }, [resizingColumn, item, focusInput, ref]); |
| 284 | |
| 285 | let onChange = (e: ChangeEvent<HTMLInputElement>) => { |
| 286 | let currentWidth = state.getColumnWidth(item.key); |
| 287 | let nextValue = parseFloat(getEventTarget(e).value); |
| 288 | |
| 289 | if (nextValue > currentWidth) { |
| 290 | nextValue = currentWidth + 10; |
| 291 | } else { |
| 292 | nextValue = currentWidth - 10; |
| 293 | } |
| 294 | resize(item, nextValue); |
| 295 | }; |
| 296 | |
| 297 | let {pressProps} = usePress({ |
| 298 | preventFocusOnPress: true, |
nothing calls this directly
no test coverage detected