Skip to content
New issue

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

Picker 和 FormItem 搭配使用时,ref.open() 会触发 Picker 的 onClose #2312

Open
160905 opened this issue Jun 2, 2024 · 0 comments
Assignees

Comments

@160905
Copy link

160905 commented Jun 2, 2024

NutUI React 包名

@nutui/nutui-react

NutUI React 版本号

^2.3.10

平台

weapp

重现链接

https://github.com/jdf2e/nutui-react/issues/new?assignees=&labels=&projects=&template=bug_report_template.yml

重现步骤

image
Uploading image.png…

期望的结果是什么?

通过 ref.open 打开的 Picker 不要直接触发 onClose

实际的结果是什么?

调用 ref.open() 打开 Picker 的同时也出发了 onClose 的周期函数

环境信息

$ taro info
👽 Taro v3.6.30

Taro CLI 3.6.30 environment info:
System:
OS: Windows 11 10.0.22000
Binaries:
Node: 20.13.1 - C:\Users\ADMINI1\AppData\Local\Temp\yarn--1717331501201-0.008278403767649323\node.CMD
Yarn: 1.22.22 - C:\Users\ADMINI
1\AppData\Local\Temp\yarn--1717331501201-0.008278403767649323\yarn.CMD
npm: 10.5.2 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 3.6.30 => 3.6.30
@tarojs/components: 3.6.30 => 3.6.30
@tarojs/helper: 3.6.30 => 3.6.30
@tarojs/plugin-framework-react: 3.6.30 => 3.6.30
@tarojs/plugin-html: 3.6.30 => 3.6.30
@tarojs/plugin-platform-alipay: 3.6.30 => 3.6.30
@tarojs/plugin-platform-h5: 3.6.30 => 3.6.30
@tarojs/plugin-platform-jd: 3.6.30 => 3.6.30
@tarojs/plugin-platform-qq: 3.6.30 => 3.6.30
@tarojs/plugin-platform-swan: 3.6.30 => 3.6.30
@tarojs/plugin-platform-tt: 3.6.30 => 3.6.30
@tarojs/plugin-platform-weapp: 3.6.30 => 3.6.30
@tarojs/react: 3.6.30 => 3.6.30
@tarojs/runtime: 3.6.30 => 3.6.30
@tarojs/shared: 3.6.30 => 3.6.30
@tarojs/taro: 3.6.30 => 3.6.30
@tarojs/taro-loader: 3.6.30 => 3.6.30
@tarojs/webpack5-runner: 3.6.30 => 3.6.30
babel-preset-taro: 3.6.30 => 3.6.30
eslint-config-taro: 3.6.30 => 3.6.30
react: ^18.0.0 => 18.3.1

Done in 1.90s.

其他补充信息

No response

@oasis-cloud oasis-cloud self-assigned this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants