palantir/blueprint
在 GitHub 查看NumericInput - prevent exceeding min or max when typing or pasting values
Open
#2,071 创建于 2018年2月2日
Package: coreType: enhancementhelp wanted
仓库指标
- Star
- (20,263 star)
- PR 合并指标
- (平均合并 43天 10小时) (30 天内合并 27 个 PR)
描述
Current NumericInput implementation caps properly at bounds when using the mouse, but when one types or pastes a value, the input should prevent typing a value exceeding the limits, it currently does not and users can type garbage.
One way to prevent this is, until a solution appears, is to check again the bounds in the onValueChange event, but is redundant.