We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Antd 4.6.0 之后, Space组件内部使用的Fragment标签出现问题,导致Fragment标签内部所有元素被识别为一个space-item,不符合Fragment标签的使用逻辑。4.6.0之前的版本是OK的,可能是4.6修改Space时引发了这个问题。
正确解析Fragment标签,并将Fragment内部所有元素解析为一个单独space的子项。
Space组件将Fragment解析为一个子项
The text was updated successfully, but these errors were encountered:
Suggest
<Space> Space <Space> <Button type="primary">Button</Button> <Button type="primary">Button</Button> </Space> <Button type="primary">Button</Button> <Upload> <Button> <UploadOutlined /> Click to Upload </Button> </Upload> </Space>
Sorry, something went wrong.
蛋疼,rc-util 的 toArray 拓展一下好了。否则又要完成重复一遍这个代码。
rc-util
zombieJ
Successfully merging a pull request may close this issue.
Reproduction link
Steps to reproduce
Antd 4.6.0 之后, Space组件内部使用的Fragment标签出现问题,导致Fragment标签内部所有元素被识别为一个space-item,不符合Fragment标签的使用逻辑。4.6.0之前的版本是OK的,可能是4.6修改Space时引发了这个问题。
What is expected?
正确解析Fragment标签,并将Fragment内部所有元素解析为一个单独space的子项。
What is actually happening?
Space组件将Fragment解析为一个子项
The text was updated successfully, but these errors were encountered: