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

Use a-range-picker component to add extra footer, insert a-select selection box in renderExtraFooter causes error #6062

Closed
1 task
RayforReal opened this issue Oct 28, 2022 · 2 comments

Comments

@RayforReal
Copy link

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

Version

3.2.13

Environment

ant-design-vue@3.2.13; vue@3.2.37

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在使用a-range-picker组件的添加额外的页脚插槽中,使用a-select下拉组件后,日期面板无法展开,组件异常

What is expected?

在使用a-range-picker组件的添加额外的页脚插槽中,可以使用下拉组件。

What is actually happening?

OptionList.js:71 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length')
at getEnabledActiveIndex2 (OptionList.js:71:42)
at setup29 (OptionList.js:88:20)

@github-actions github-actions bot changed the title 使用a-range-picker组件添加额外页脚,在renderExtraFooter中插入a-select选择框导致报错 Use a-range-picker component to add extra footer, insert a-select selection box in renderExtraFooter causes error Oct 28, 2022
@RayforReal
Copy link
Author

看源码中是vc-select中的的useSelectProps方法inject接收下拉数据时出现异常导致后续取值props.flattenOptions报错
image

@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 Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants