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选择项点击下面的选项后(不是滚动选择)报错 #21

Open
xilin-093 opened this issue Dec 29, 2018 · 7 comments
Open

Comments

@xilin-093
Copy link

thirdScriptError
Cannot read property 'label' of undefined;at pages/mpvuePicker/main page handleProxy function
TypeError: Cannot read property 'label' of undefined

@KuangPF
Copy link
Member

KuangPF commented Jan 2, 2019

调试了下,不能复现问题,能否提供比较详细的问题描述以及 picker 所渲染的数据。
demo2

@soulkiller
Copy link

调试了下,不能复现问题,能否提供比较详细的问题描述以及 picker 所渲染的数据。
demo2

单列选择 pickerValueArray只有一个数据时 点击取消或者确定都会报这个错

@yyd1142
Copy link

yyd1142 commented May 10, 2019

调试了下,不能复现问题,能否提供比较详细的问题描述以及 picker 所渲染的数据。
demo2

单列选择 pickerValueArray只有一个数据时 点击取消或者确定都会报这个错

是pickerValueDefault 的问题,不要设置pickerValueDefault

@KuangPF
Copy link
Member

KuangPF commented May 10, 2019

@yyd1142 ,方便提供下代码和 mpvue-picker 的版本不,我这边看下。

@xilin-093
Copy link
Author

xilin-093 commented May 14, 2019 via email

@KuangPF
Copy link
Member

KuangPF commented May 14, 2019

@xilin-093 好的,我还想问下这个问题是怎么引起的,是 mpvue-picker 的问题(就像上面所描述的:单列选择 pickerValueArray只有一个数据时,点击取消或者确定都会报这个错) ,还是其他原因,如果是mpvue-picker问题的话我修复下。

@Superzzw1994
Copy link

确实,单行,只有一个数据的时候,如果设置 pickerValueDefault,就会报那个错。

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

5 participants