labelCol issue with inline layout in antd form/form.item in version 5.4.6 #42165
meerahmadali54
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using the labelCol in the form and form.item as in the following code, previously i was using the antd version 5.2.2 and it was working perfectly fine but recently i upgraded it to 5.4.6 and its not working properly. Its causing issue in style. I attached the UI results as well.
`<Form name="basic" layout="inline" onFinish={onFinish} labelCol={{ span: 24 }} initialValues={initialValues} autoComplete="off">
`<Form.Item label={label} labelCol={{ span: 24 }} name=''>
</Form.Item >
This is the link where its working fine:
working
Another link with same code and version 5.4.6 where style is not fine:
not_working
Please someone share some comments to resolve this.
Beta Was this translation helpful? Give feedback.
All reactions