palantir/blueprint
Vedi su GitHubNumericInput - prevent exceeding min or max when typing or pasting values
Open
#2071 aperta il 2 feb 2018
Package: coreType: enhancementhelp wanted
Metriche repository
- Star
- (20.263 star)
- Metriche merge PR
- (Merge medio 43g 10h) (27 PR mergiate in 30 g)
Descrizione
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.