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

use getFieldDecorator in jsx report an error (TypeError: Cannot read property 'value' of undefined) #930

Closed
1 task done
drafish opened this issue Jul 3, 2019 · 4 comments
Labels

Comments

@drafish
Copy link
Contributor

drafish commented Jul 3, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.10

Environment

os version: macos 10.14.5、browser version: chrome75.0.3770.100、vue version: ^2.6.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

use getFieldDecorator in jsx like this

{getFieldDecorator(name, options)(

)}

What is expected?

render FormItem

What is actually happening?

report an error (TypeError: Cannot read property 'value' of undefined) and cannot render FormItem

drafish added a commit to drafish/ant-design-vue that referenced this issue Jul 3, 2019
@drafish drafish mentioned this issue Jul 3, 2019
13 tasks
@tangjinzhou
Copy link
Member

如果用jsx的,form可以使用react 的方式,不需要传递 form={this.form}

tangjinzhou pushed a commit that referenced this issue Jul 5, 2019
@drafish
Copy link
Contributor Author

drafish commented Jul 5, 2019

如果用jsx的,form可以使用react 的方式,不需要传递 form={this.form}

谢谢唐老师指出错误,复现用例和ant-design-vue-pro中的Login组件中的form={this.form}我已经都删掉了。顺便夸一句,唐老师的办事效率好高啊,我这pr提了还没两天就处理了。element那边我也提了个pr,三个多月了还没处理。顺便再问下,这个issue是不是可以close掉了

@tangjinzhou
Copy link
Member

关掉吧

@github-actions
Copy link

github-actions bot commented Jul 5, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants