From 95a217d91511224dfa7744f77b8f8820b6133d8b Mon Sep 17 00:00:00 2001 From: Ai Ling Date: Mon, 7 Nov 2022 18:46:55 +0800 Subject: [PATCH] [offers][fix] Fix number input changing on scroll --- 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 6765f132..dfd7d9f3 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); }} + onWheel={(event) => event.currentTarget.blur()} {...props} /> {(() => {