You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: event.initEvent is not a function
at Function.$.Event (._node_modules_.pnpm_@tarojs extend@3.6.28_node_modules_@tarojs_extend_src_jquery_event.js:278)
at Z.$.fn.trigger (._node_modules_.pnpm_@tarojs extend@3.6.28_node_modules_@tarojs_extend_src_jquery_event.js:236)
at onClick (index.jsx?5256:232)
at handleClick (._node_modules_.pnpm_@nutui nutui-react-taro@2.5.2_react-dom@18.2.0_react@18.2.0__react@18.2.0_node_modules_@nutui_nutui-react-taro_dist_esm_button.taro-CjH840d8.js:30)
at TaroElement.onClick (._node_modules_.pnpm_@nutui nutui-react-taro@2.5.2_react-dom@18.2.0_react@18.2.0__react@18.2.0_node_modules_@nutui_nutui-react-taro_dist_esm_button.taro-CjH840d8.js:48)
at TaroElement.handler (.._src_dom_event-target.ts:47)
at TaroElement.dispatchEvent (.._src_dom_element.ts:329)
at .._src_render.ts:119
at Object.exports.runWithPriority (._node_modules_.pnpm_react-reconciler@0.27.0_react@18.2.0_node_modules_react-reconciler_cjs_react-reconciler.production.min.js:226)
at TaroHooks.<anonymous> (.._src_render.ts:118)(env: macOS,mp,1.06.2402040; lib: 3.4.0)
相关平台
微信小程序
复现仓库
https://gist.github.com/loocor/2945eb43532b4e878a054cc491ac97aa
小程序基础库: 3.4.2
使用框架: React
复现步骤
期望结果
点击 “用于检查数据的按钮” 后,能够按其 onClick 事件代码那样,触发 “在线咨询” 按钮被点击
实际结果
Wechat Devtools 工具控制台输出错误信息:
环境信息
补充信息
使用 ref 模式如 refContact.current?.click() 还是出错,提示 click() 不是函数
The text was updated successfully, but these errors were encountered: