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

Must complain: FormItem 2.1.6->2.2.2 is not compatible with the update #4383

Closed
1 task
topsoft-support opened this issue Jul 17, 2021 · 2 comments
Closed
1 task
Labels

Comments

@topsoft-support
Copy link

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

Version

2.2.2

Environment

Edge 91

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/next/components/form/FormItem.tsx#L310

Steps to reproduce

具体哪个版本改的这个我没去看提交,之前2.1.6 今天更新了下 到了2.2.2

2.1.6版本:

<FormItem required has-feedback label="用户名称" name="userName">
<label>
<Input v-model:value="entity.userName" placeholder="请输入用户名称" autocomplete="off"/>
</label>
</FormItem>

2.2.2版本:

FormItem.js?322e:337 Uncaught (in promise) TypeError: Cannot read property 'onBlur' of null
at Proxy.eval (FormItem.js?322e:337)
at renderComponentRoot (runtime-core.esm-bundler.js?5c40:1168)
at componentEffect (runtime-core.esm-bundler.js?5c40:5214)
at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)
at effect (reactivity.esm-bundler.js?a1e9:17)
at setupRenderEffect (runtime-core.esm-bundler.js?5c40:5167)
at mountComponent (runtime-core.esm-bundler.js?5c40:5126)
at processComponent (runtime-core.esm-bundler.js?5c40:5084)
at patch (runtime-core.esm-bundler.js?5c40:4690)
at mountChildren (runtime-core.esm-bundler.js?5c40:4874)

结果发现只能改成:

<FormItem required has-feedback label="登录名称" name="userCode">
<Input v-model:value="entity.userCode" placeholder="请输入登录名称" autocomplete="off"/>
</FormItem>

好吧,我是JetBrains党,页面就给出警告:Missing associated label ,满屏的黄色图标,不舒服,总想去改掉。

好吧,其实我一直以来前端的input都习惯加label标签,好处多多。

好吧,我改表单FormItem去了, 还有点多。。。。

What is expected?

提高开发人员水平,加大测试力度。

What is actually happening?

花个一天时间修改项目,花两天测试。


别给我说用英文,老外要看吗?看不懂中文就自己学,不学,自己不会用翻译软件吗?

@github-actions github-actions bot changed the title 必须吐槽:FormItem 2.1.6->2.2.2不兼容更新 Must complain: FormItem 2.1.6->2.2.2 is not compatible with the update Jul 17, 2021
@tangjinzhou
Copy link
Member

学不动了

@github-actions
Copy link

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 18, 2022
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