Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picker更改range后, pickerValue不归0 #1157

Closed
blueskink opened this issue Nov 16, 2018 · 2 comments
Closed

picker更改range后, pickerValue不归0 #1157

blueskink opened this issue Nov 16, 2018 · 2 comments
Assignees

Comments

@blueskink
Copy link

blueskink commented Nov 16, 2018

问题描述

picker更改range后, pickerValue不归0。比如选择第3个数据项后,把range长度改为2,这时picker选中数据项还在第三个上(此时为空), 直接点击确认,event.detail.value的值超出range范围,引起后续错误。

复现步骤
[复现问题的步骤]

  1. 选择第三数据项
  2. range更改为长度2的数组
  3. 打开picker
  4. See error
// 这里可以贴代码

期望行为
更改range后,能复位到选择项为1.

系统信息*

  • Taro 版本 [e.g. v.1.0.3]
  • 报错平台 [h5]

补充信息
[可选]
[根据你的调查研究,出现这个问题的原因可能在哪里?]

@jinjinjin0731
Copy link
Contributor

大概知道什么原因了 尽快修复这个问题

@taro-bot
Copy link

taro-bot bot commented Nov 30, 2018

CC @jinjinjin0731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants