palantir/blueprint

Feature request: Ability to reverse the up/down buttons on NumericInput

Open

#4,706 创建于 2021年5月8日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: coreType: feature requesthelp wanted

描述

I'm trying to use NumericInput to allow users to page through a long document. For paging, the natural order of the up/down buttons is the opposite of the way the control works (up button should be previous page, down button should be next page). I tried to achieve this by using a negative stepSize, but that causes an error.

Edit: This change should also apply to using the up/down arrow keys when focus is on the value input box. Up arrow should decrement, down arrow should increment.

image

贡献者指南