-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: NumericStepper should support complex editing behavior for floats basing on the caret position #110
Comments
It's default React behavior, details here: facebook/react#955 (comment) . I don't think we should track cursor position manually until we have it as a requirement :) |
Looks like the issue is relevant because such behavior does describe what a numeric stepper should actually do, not a numeric input. Moreover I would expect top/bottom arrows to also work incrementing/decrementing the digit at the current caret position. |
NS should support 2 editing modes: one is full-editing which is enabled for integers and for floats to left from the point |
NS should drop the |
I'd also suggest to replace underlying |
Not sure if it's outside of component's scope.
However let's clear some things with NS.
Consider following code to reproduce behaviour (a little bit modified
NumericStepper.page.tsx
example):when entering value into NS input it's always set carete to an end.
Seems like it's going to happen only if value has fixed amount of digits.
Is it bug or expected behaviour?
The text was updated successfully, but these errors were encountered: