jd-opensource / jd-opensource/taro-ui

swiper bug: Cannot read property 'paused' of undefined

Open
#1,342 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**

源代码报错
this.swiper.autoplay是undefind了

**复现步骤**

![image](https://user-images.githubusercontent.com/50408169/118072141-d05e9000-b3db-11eb-9e7d-a399636f2813.png)

```js
// 这里可以贴代码
```

**期望行为**

**报错信息**

**系统信息**

**补充信息**

Contributor guide

Open the contributing guide

Research direction

Start by locating the swiper component and the code path that accesses this.swiper.autoplay, then reproduce the reported error using the screenshot and issue description. Confirm which platform and package versions are involved before changing anything; done means the swiper no longer reads paused from an undefined autoplay object and the regression is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.