We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d20f91 commit 1125159Copy full SHA for 1125159
packages/taro-components-rn/src/components/Input/index.tsx
@@ -121,7 +121,7 @@ const _Input = (props: InputProps) => {
121
if (typeof result === 'string') {
122
tmpValue.current = result
123
setReturnValue(result)
124
- } else if (returnValue) {
+ } else if (returnValue !== undefined) {
125
// 为了处理输入不合法,setState 相同值时,状态不更新,UI 也得不到更新,重置状态进而更新
126
setReturnValue(undefined)
127
}
0 commit comments