jd-opensource / jd-opensource/taro-ui
SwipeAction组件出现异常
Open
操作反馈组件
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
### Taro UI 版本信息
2.1.0
### 问题描述
options/index.js中,componentDidMount执行delayQuerySelector方法得到响应后,在this.props.onQueryedDom(res[0])中发生异常;
异常的原因:res[0]解构时无width属性,导致onQueryedDom执行时异常
### 复现步骤
本地开发环境暂无法复现
### 复现代码
本地开发环境暂无法复现
### 报错信息
错误一:null is not an object (evaluating 'e.width'); [Component] Event Listener Error @ npm/taro-ui/dist/weapp/components/swipe-action/options/index#(anonymous)
错误二:Cannot read property 'width' of null; [Component] Event Listener Error @ npm/taro-ui/dist/weapp/components/swipe-action/options/index#(anonymous)
### 系统信息
1.2.13
### 补充信息
Contributor guide
Assessment
This issue has not been assessed yet.