From 2c042698e422036486abccf86273d21cbb09df03 Mon Sep 17 00:00:00 2001 From: Ai Ling Date: Mon, 7 Nov 2022 19:11:44 +0800 Subject: [PATCH] [ui][text input] Add comment --- packages/ui/src/TextInput/TextInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/src/TextInput/TextInput.tsx b/packages/ui/src/TextInput/TextInput.tsx index dfd7d9f3..74336772 100644 --- a/packages/ui/src/TextInput/TextInput.tsx +++ b/packages/ui/src/TextInput/TextInput.tsx @@ -198,6 +198,7 @@ function TextInput( onChange(event.target.value, event); }} + // To prevent scrolling from changing number input value onWheel={(event) => event.currentTarget.blur()} {...props} />