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组件没有设置className时编译h5,会在div上加上class="undefined" #6719

Closed
piscdong opened this issue Jun 17, 2020 · 0 comments
Assignees

Comments

@piscdong
Copy link

piscdong commented Jun 17, 2020

问题描述

Picker组件没有设置className时编译h5,会在div上加上class="undefined"

复现步骤

  1. 代码中使用:<Picker mode='time'>当前选择</Picker>
  2. 预览h5:taro build --type h5 --watch
  3. 调试网页,查看elements
  4. <div class="undefined"><div>当前选择</div>
/**
 * 这段注释后可以贴代码
 * 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间
 * 代码提供不全或代码格式混乱的 issues 【有可能会被忽略】
 * 
 * 查看如何插入代码:https://coding.net/help/doc/project/markdown.html#i-5
 */

期望行为

没有设置className时,class为空

报错信息

系统信息

补充信息

如果您有功能上的建议,可以提到 FeatHub

使用上的问题,欢迎在「Taro 社区」一起交流

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