<uni-card >
<checkbox/>
</uni-card>
- 发布:2023-02-10 11:13
- 更新:2023-02-13 14:07
- 阅读:410
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.6.18
浏览器平台: Chrome
浏览器版本: 109.0.5414.120
项目创建方式: HBuilderX
示例代码:
操作步骤:
<uni-card >
<checkbox/>
</uni-card>
<uni-card >
<checkbox/>
</uni-card>
预期结果:
不报错
不报错
实际结果:
Uncaught TypeError: Cannot destructure property 'id' of 'el' as it is null.
at normalizeTarget (uni-shared.es.js:491:13)
at createNativeEvent (uni-h5.es.js:1551:13)
at $nne (uni-h5.es.js:1516:15)
at HTMLElement.invoker (vue.runtime.esm.js:9673:15)
Uncaught TypeError: Cannot destructure property 'id' of 'el' as it is null.
at normalizeTarget (uni-shared.es.js:491:13)
at createNativeEvent (uni-h5.es.js:1551:13)
at $nne (uni-h5.es.js:1516:15)
at HTMLElement.invoker (vue.runtime.esm.js:9673:15)
bug描述:
hello uni-app工程
<uni-card >
<checkbox/>
</uni-card>
取消选择报错
Uncaught TypeError: Cannot destructure property 'id' of 'el' as it is null.
at normalizeTarget (uni-shared.es.js:491:13)
at createNativeEvent (uni-h5.es.js:1551:13)
at $nne (uni-h5.es.js:1516:15)
at HTMLElement.invoker (vue.runtime.esm.js:9673:15)
9***@qq.com (作者)
vue3版本
2023-02-10 16:01
YUANRJ
回复 9***@qq.com: 提供一下测试工程
2023-02-10 16:06
9***@qq.com (作者)
回复 YUANRJ: hello uni-app工程 vue3版本
2023-02-13 11:05
YUANRJ
回复 9***@qq.com: 没有复现,提供一下你的测试工程吧。
2023-02-13 11:14
zerojs
解决了吗,我发现只要checkbox 外层有@click事件就会必现这个问题,要点击两次才可以取消选中
2024-07-09 11:18