nutui-react icon indicating copy to clipboard operation
nutui-react copied to clipboard

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

Open 160905 opened this issue 1 year ago • 0 comments

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\ADMINI~1\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

160905 avatar Jun 02 '24 12:06 160905