-
Notifications
You must be signed in to change notification settings - Fork 6
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
Remove listener mutating text-field value #269
Conversation
// Making sure the new value has the same length of decimal places as the | ||
// step / value has. | ||
let decimalPlaces = Math.max(dpl(numericValue), dpl(step)); | ||
let newValue = Math.min(max, Math.max(numericValue + steps * step, min)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really sure why linter changed these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this to call onChange
as the user types, rather than remove it altogether?
I played around with Polaris TextField
in the sandbox and it calls onChange
as the input value changes, regardless of focus/bur.
@tomnez I think I've found the root cause for this not working as expected...we've been using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this in an app and looks good 👍
Diff better viewed here