Skip to content

<a-config-provider> dropdownmatchselectwidth doesn't work on Select but work on TreeSelect #7792

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

Closed
1 task done
kongyajie opened this issue Aug 19, 2024 · 1 comment · May be fixed by #8183
Closed
1 task done

<a-config-provider> dropdownmatchselectwidth doesn't work on Select but work on TreeSelect #7792

kongyajie opened this issue Aug 19, 2024 · 1 comment · May be fixed by #8183
Labels

Comments

@kongyajie
Copy link

kongyajie commented Aug 19, 2024

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

Version

4.2.3

Environment

macOS版本Ventura、Chrome版本127.0.6533.100、vue版本3.2

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. main.ts 中全局引入 ant-design-vue
  2. App.vue 中使用 <a-config-provider> ,并配置 dropdownmatchselectwidth 属性为 false
  3. App.vue 中使用 <a-select> ,并配置 options,选项超过15条,部分选项字数超过10个字
  4. 本地运行

What is expected?

select选项的Dropdown宽度,根据文字长度拓宽以展示完整,超过select自身宽度

What is actually happening?

select选项的Dropdown宽度,未根据文字长度拓宽以展示完整,和select自身宽度相同


  1. 同样的场景,这个全局配置属性在 TreeSelect 使用正常
  2. 这个issue-helper version 好像选不了,version 应该是 ant-design-vue 4.2.3(当前最新版)
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant