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先选择二级联动,再选择单列,(浏览器端)滑动单列会报错(小程序和app端正常) #193

Closed
zhwj407906450 opened this issue Feb 7, 2019 · 1 comment
Assignees

Comments

@zhwj407906450
Copy link

问题描述
picker组件在浏览器端,先选择二级联动,再选择单列,滑动单列会报错

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

  1. 进入unidemo中的 mpvue-picker
  2. 点击 '二级联动',随机选择数据
  3. 点击 ‘单列选择’,上下滑动弹出的列表选择项,无法正常显示选中的值,此时会在浏览器端报错

[或者可以直接贴源代码]

预期结果
[先选择二级联动,再选择单列数据,可以正常获取单列选择数据看]

实际结果
index.umd.min.js:1 [system] errorHandler TypeError: Cannot read property 'label' of undefined
at VueComponent._getPickerLabelAndValue (mpvuePicker.vue:326)
at VueComponent.pickerChange (mpvuePicker.vue:256)
at change (mpvuePicker.vue?b1f6:75)
at VueComponent.invoker (vue.runtime.esm.js:2078)
at VueComponent.Vue.$emit (vue.runtime.esm.js:2589)
at VueComponent.$trigger (index.umd.min.js:1)
at VueComponent.handler (index.umd.min.js:1)
at Watcher.getAndInvoke (vue.runtime.esm.js:3316)
at Watcher.run (vue.runtime.esm.js:3296)
at flushSchedulerQueue (vue.runtime.esm.js:3031) VueComponent {_uid: 114, _isVue: true, $options: {…}, _renderProxy: Proxy, _self: VueComponent, …} event handler for "change"

系统信息:

  • 发行平台: [谷歌浏览器 版本 68.0.3440.106(正式版本) (64 位)]
  • 操作系统 [win10]
  • HBuilderX版本 [ HBuilderX 1.5.4]

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

@xiaoyucoding
Copy link

1.7.0 已更新并修复此问题

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

3 participants