<uni-card>
<checkbox-group @change="checkboxChange">
<checkbox value="cb" :checked="true" />选中
<checkbox value="cb1" />未选中
</checkbox-group>
</uni-card>
- 发布:2023-02-07 10:46
- 更新:2023-02-10 11:02
- 阅读:338
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.6.18
浏览器平台: Chrome
浏览器版本: 109.0.5414.120
项目创建方式: HBuilderX
示例代码:
操作步骤:
vue3项目 按代码格式,反选checkbox即可复现
vue3项目 按代码格式,反选checkbox即可复现
预期结果:
无报错
无报错
实际结果:
uni-shared.es.js:491 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)
uni-shared.es.js:491 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描述:
uni-card 标签下 checkbox 反选报如下错误。 如不加uni-card 则不报错
uni-shared.es.js:491 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)
c***@163.com (作者)
<template>
<view class="content">
<uni-card title="checkbox反选报错">
<checkbox-group>
<label>
<checkbox value="cb" color="#FFCC33" style="transform:scale(0.7)" />选中
</label>
</checkbox-group>
</uni-card>
</view>
</template>
2023-02-14 16:02
c***@163.com (作者)
vue3项目 100%复现
2023-02-14 16:06
1***@qq.com
回复 c***@163.com: 我也遇到了,也是vue3,你解决了吗?
2023-02-20 10:16