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

使用<form>报错:Expected a component class以及用InputItem无法输入内容 #603

Closed
ssjjnn opened this issue Dec 2, 2016 · 8 comments

Comments

@ssjjnn
Copy link

ssjjnn commented Dec 2, 2016

本地环境

  • antd-mobile 版本:0.9.10
  • 操作系统及其版本:iOS
  • 浏览器及其版本:chrome 版本 54.0.2840.71 (64-bit)

你做了什么?

image
image
无法输入内容

然后根据List组件里面的例子,在最外面套了个

,报错:Expected a component class

你期待的结果是:

实际上的结果:

可重现的在线演示

@ssjjnn
Copy link
Author

ssjjnn commented Dec 2, 2016

在最外面套了个form

@warmhug
Copy link
Contributor

warmhug commented Dec 2, 2016

react-native 没有 form 标签

@silentcloud
Copy link
Contributor

silentcloud commented Dec 2, 2016

RN InputItem Android 下面不能输入的话有可能是组件里设置了 maxLength 默认 -1 的原因 https://github.com/ant-design/ant-design-mobile/blob/0.9.x/components/input-item/index.tsx#L21,我先 check 一下 0.9,这个我在 master 上已修了 @ssjjnn

@warmhug
Copy link
Contributor

warmhug commented Dec 2, 2016

把代码也同步到 0.9.x 分支 @silentcloud

@silentcloud
Copy link
Contributor

等待 0.9.11 发布

@ssjjnn
Copy link
Author

ssjjnn commented Dec 5, 2016

image
我升到0.9.11了,可还是有问题,能输进去,但是立马就消失了,就像闪一下
@silentcloud @warmhug

@ssjjnn
Copy link
Author

ssjjnn commented Dec 5, 2016

image
这个也是一样的结果

@lock
Copy link

lock bot commented May 28, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants