We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@nutui/nutui-react
2.3.6
weapp
https://y83cjj-5173.csb.app/
安卓端微信小程序调用以下组件可复现,注:微信开发者工具与CodeSandbox无法复现
import { View } from "@tarojs/components"; import { Input, Button } from "@nutui/nutui-react-taro"; import { useState } from "react"; const Test = () => { const [keyword, setKeyword] = useState(""); return <View> <Input value={keyword} onChange={setKeyword}/> <Button onClick={() => {setKeyword("");}}>清空</Button> </View>; }; export default Test ;
<Input />组件输入"test"值后,点击清空按钮,输入框清空
<Input />
"test"
清空
点击清空按钮后keyword更新为"",随后<Input />组件的onChange事件会被自动调用并传入"test"值,导致<Input />组件的值未能清空
keyword
""
onChange
No response
The text was updated successfully, but these errors were encountered:
github复现库:https://github.com/WweiweiSmile/nutui-input-test.git
Sorry, something went wrong.
i am the same problem as well
oasis-cloud
Successfully merging a pull request may close this issue.
NutUI React 包名
@nutui/nutui-react
NutUI React 版本号
2.3.6
平台
weapp
重现链接
https://y83cjj-5173.csb.app/
重现步骤
安卓端微信小程序调用以下组件可复现,注:微信开发者工具与CodeSandbox无法复现
期望的结果是什么?
<Input />
组件输入"test"
值后,点击清空
按钮,输入框清空实际的结果是什么?
点击
清空
按钮后keyword
更新为""
,随后<Input />
组件的onChange
事件会被自动调用并传入"test"
值,导致<Input />
组件的值未能清空环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: