Open jdpaterson opened 5 years ago
Can you explain your use case a bit more? Is incrementing by a certain minor/major step size insufficient? How?
My use case is that I have a grid of NumericInputs, and when I press the arrow keys left-down-up-right , I want to change focus to the corresponding NumericInput in that position.
Ok, for that use case, I can see how the component makes it difficult to implement your design. One idea I had was to accept a return value from NumericInput's onKeyDown
/ onKeyPress
and if it's false
we could exit early:
... but moving that props.onKeyDown
call to earlier in the handler is unfortunately a small breaking change (it currently gets called after props.onValueChange
, and this would change it to be called before).
Another approach would be to add a prop like disableKeyInteractions: boolean
, but you'd be losing a lot of functionality which the component provides out of the box...
Environment
Feature request
Hi, I would like to be able to disable, or better yet override, the up down keyboard presses when focused in a NumericInput. Currently we are forced to increment by a step value. Not sure if this conflicts with any design standards but thought I'd put it up.
Thanks
Examples