[ui][text input] Fix number input changing on scroll (#527)

* [ui][text input] Fix number input changing on scroll

* [ui][text input] Add comment
pull/528/head
Ai Ling 2 years ago committed by GitHub
parent c1d926c6fa
commit 0cdd5ac9a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -198,6 +198,8 @@ function TextInput(
onChange(event.target.value, event); onChange(event.target.value, event);
}} }}
// To prevent scrolling from changing number input value
onWheel={(event) => event.currentTarget.blur()}
{...props} {...props}
/> />
{(() => { {(() => {

Loading…
Cancel
Save