Skip to content

AutoComplete 自定义输入组件 disabled 属性无效 #3140

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
shaoye opened this issue Nov 8, 2020 · 2 comments
Closed
1 task

AutoComplete 自定义输入组件 disabled 属性无效 #3140

shaoye opened this issue Nov 8, 2020 · 2 comments
Labels

Comments

@shaoye
Copy link

shaoye commented Nov 8, 2020

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

Version

1.7.2

Environment

Reproduction link

https://www.antdv.com/components/auto-complete-cn/#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%BE%93%E5%85%A5%E7%BB%84%E4%BB%B6

Steps to reproduce

在 textarea 多行的情况下:

若在 a-auto-complete 内设置 disabled 为 true,禁用有效,但灰底样式出错,只覆盖第一行

若在 a-auto-complete 下的 a-textarea 内设置 disabled 为 true,禁用无效,且无灰底样式

What is expected?

灰底禁用样式覆盖整个textarea

What is actually happening?

^

@tangjinzhou
Copy link
Member

临时方案

.ant-select-auto-complete.ant-select .ant-input[disabled] {
    background-color: #f5f5f5;
}

@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 Nov 13, 2021
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

2 participants