jd-opensource / jd-opensource/taro-ui

AtSwipeAction 提示 TypeError: Cannot read property 'width' of null

Open
#1,782 2 comments 0 reactions 1 assignee Claimed by @robinv8 View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
![image](https://github.com/NervJS/taro-ui/assets/52577423/c98ca5be-01b1-41d0-b8cd-5a312b634637)
![image](https://github.com/NervJS/taro-ui/assets/52577423/55ab924c-5cb4-4600-88d0-8f46389d600b)
![image](https://github.com/NervJS/taro-ui/assets/52577423/503a3fd1-b5b3-4588-b306-3767854381bb)
使用AtSwipeAction 并且渲染到页面中时报错如上

**复现步骤**
我点击新增item,给我的list push了一个新item,报错如上

```js
const renderTodoItems = () => {
return todoList.map((item, index) => {
return (




{item?.isFinished ? '✔' : '×' }


{item.content}




)
})
}
```

**期望行为**

**报错信息**

**系统信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.