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

<c-picker>组件在微信小程序上过快选择选项,导致无法选择其他选项,移动到其他选项会强制回弹。 #163

Closed
ALANXYH opened this issue May 7, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@ALANXYH
Copy link

ALANXYH commented May 7, 2019

bug描述
组件在微信小程序上过快选择选项,导致无法选择其他选项,移动到其他选项会强制回弹。

复现bug的步骤

  1. 将c-picker组件官方代码copy进项目中
  2. 打开微信小程序,打开c-picker组件
  3. 在c-picker组件中刚滑动到一个选项就点击确认
  4. 再次打开c-picker组件
  5. See error

问题截图
newone2
newone3

编译环境信息

  • chameleon-tool 版本:[ 0.3.2 ]
  • nodejs版本、npm版本:[node v10.11.0、npm 6.7.0]
  • 电脑操作系统: [macOS High Sierra 10.14.4 ]

运行环境信息

  • 端版本: [微信小程序 7.0.4]
  • 手机机型: [iPhone8 12.2]
@ALANXYH ALANXYH added the bug Something isn't working label May 7, 2019
@beatles-chameleon
Copy link
Collaborator

直接copy了官网的代码示例,没有复现,请确认传入的default-index是否一直在变更导致的

@ALANXYH
Copy link
Author

ALANXYH commented May 7, 2019

@beatles-chameleon
newone4

@ALANXYH
Copy link
Author

ALANXYH commented May 7, 2019

这个问题我在微信小程序上触发的了,在h5上不会出现。

@beatles-chameleon
Copy link
Collaborator

代码示例有些问题,将this.provinsIndex = this.defaultIndex = e.detail.index;改成this.provinsIndex = e.detail.index;

@ALANXYH
Copy link
Author

ALANXYH commented May 8, 2019

可以了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants