-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Form.useInjectFormItemContext is not a function error #6006
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
Comments
related issues: #5667 |
如果用的 2.x 版本,请升级3.x |
Hello @fayeah. Please provide a online reproduction by forking this link for vue2、 link for vue3 or a minimal GitHub repository. Make sure to choose the correct version. 你好 @fayeah, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2、 此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。 |
Since the issue was labeled with 由于该 issue 被标记为需要复现信息,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。 |
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. |
Version
2.2.6
Environment
chrome
Reproduction link
https://github.com/vueComponent/ant-design-vue/blob/cb3c002e17f0f4f5b3e8d01846069da0e2645aff/components/form/demo/price-input.vue
Steps to reproduce
const formItemContext = Form.useInjectFormItemContext();
Form.useInjectFormItemContext is not a function error
What is expected?
can create customized selector component successfully.
What is actually happening?
error occurs
reference the documentation mentioned: https://antdv.com/components/form/#Form, "Customized Form Controls"
part.
The text was updated successfully, but these errors were encountered: