mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-02-03 02:24:47 +08:00
[ui][text input] Fix number input changing on scroll (#527)
* [ui][text input] Fix number input changing on scroll * [ui][text input] Add comment
This commit is contained in:
@@ -198,6 +198,8 @@ function TextInput(
|
||||
|
||||
onChange(event.target.value, event);
|
||||
}}
|
||||
// To prevent scrolling from changing number input value
|
||||
onWheel={(event) => event.currentTarget.blur()}
|
||||
{...props}
|
||||
/>
|
||||
{(() => {
|
||||
|
||||
Reference in New Issue
Block a user