ant-design/ant-design-mobile

Add useChildren to Align Behavior Between Ant Design and Ant Design Mobile

Open

#6,767 opened on Oct 27, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (2,313 forks)batch import
help wanted

Repository metrics

Stars
 (11,238 stars)
PR merge metrics
 (Avg merge 1d 14h) (9 merged PRs in 30d)

Description

Version of antd-mobile

5.37.1

Description

In antd form, useChildren is used when children is an array with a single formItem. However, in antd mobile, this is treated as an exceptional case and results in an error. Could the behavior in antd mobile be aligned with that of antd?

antd mobile form image

antd form image

Contributor guide