From 40fd0e1ee7c3beb0785b7f370f49acf6ccbaa937 Mon Sep 17 00:00:00 2001 From: Miles-hxy <1872591453@qq.com> Date: Thu, 12 Jun 2025 14:26:17 +0800 Subject: [PATCH] fix(input): handleBlur callback value is undefined in mini-programs --- src/packages/input/input.taro.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/packages/input/input.taro.tsx b/src/packages/input/input.taro.tsx index 32e8a4e518..d88240e831 100644 --- a/src/packages/input/input.taro.tsx +++ b/src/packages/input/input.taro.tsx @@ -141,7 +141,8 @@ export const Input = forwardRef((props: Partial, ref) => { } const handleBlur = (event: any) => { - const val = Taro.getEnv() === 'WEB' ? (event.target as any).value : value + const val = + Taro.getEnv() === 'WEB' ? (event.target as any).value : event.detail.value updateValue(val, 'onBlur') setTimeout(() => setActive(false), 200) }