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

AutoComplete props prefixCls sets the default value, resulting in invalid configProvide prefixCLS #4566

Closed
1 task done
candy-Tong opened this issue Aug 24, 2021 · 2 comments
Labels

Comments

@candy-Tong
Copy link
Contributor

candy-Tong commented Aug 24, 2021

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

Version

undefined

Environment

windows10,google chrome 79.0.3945.130,vue 2.6.10

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/next/components/auto-complete/index.tsx#L36

Steps to reproduce

AutoComplete props prefixCls 设置默认值,导致configProvide prefixCLS无效

const { getPrefixCls } = this.configProvider;
const prefixCls = getPrefixCls('select', customizePrefixCls);

customizePrefixCls始终为props默认值,导致configProvide prefixCLS无效

What is expected?

configProvide prefixCLS生效

What is actually happening?

configProvide prefixCLS无效

@github-actions github-actions bot changed the title AutoComplete props prefixCls 设置默认值,导致configProvide prefixCLS无效 AutoComplete props prefixCls sets the default value, resulting in invalid configProvide prefixCLS Aug 24, 2021
@candy-Tong
Copy link
Contributor Author

candy-Tong commented Aug 24, 2021

candy-Tong pushed a commit to candy-Tong/ant-design-vue that referenced this issue Aug 24, 2021
candy-Tong pushed a commit to candy-Tong/ant-design-vue that referenced this issue Aug 24, 2021
tangjinzhou pushed a commit that referenced this issue Aug 24, 2021
Co-authored-by: candychuang <candychuang@tencent.com>

close #4566
@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 Aug 25, 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

1 participant