jd-opensource / jd-opensource/taro-ui

Indexes索引选择器 右侧导航 同一字母只能点击一次

Open
#899 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述** Indexes索引选择器 右侧导航同一key只能点击一次必须切换另一个key

**复现步骤**

1. Go to 将列表滑动至底部
2. Click on 然后点击右侧导航top,能正常回到顶部
3. Scroll down to 在次将列表滑动至底部
4. See error 在次点击右侧导航top,没有正常回到顶部

**期望行为**

每次完成滚动后重置scrollIntoView
```js
this.timeoutTimer = setTimeout(() => {
this.setState({
_tipText: '',
_isShowToast: false
})
}, 3000)
this.timeoutTimer = setTimeout(() => {
this.setState({
_tipText: '',
_isShowToast: false,
_scrollIntoView: null // 源码这里没有重置scrollIntoView
})
}, 3000)
```

**报错信息**

**系统信息**

Taro 版本 [e.g. v.1.3.22]
Taro UI 版本 [e.g. v.2.2.4]
报错平台 [weapp]

**补充信息**

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.