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

[Bug Report]AutoComplete组件disabled与clearable同用时clearable应该不能清空 #6161

Closed
JunYiZzz opened this issue Aug 6, 2019 · 6 comments
Labels

Comments

@JunYiZzz
Copy link

JunYiZzz commented Aug 6, 2019

Environment

iView Run版本

Reproduction link

https://run.iviewui.com/hMp0SDee

Steps to reproduce

见重现示例

What is expected?

不能清空

What is actually happening?

输入值被清空

@jiawulin001
Copy link
Contributor

示例是空白的,里面没有任何代码,是不是搞错了

image

@JunYiZzz
Copy link
Author

JunYiZzz commented Aug 8, 2019

示例

示例是空白的,里面没有任何代码,是不是搞错了

image

https://run.iviewui.com/hMp0SDee 我本地和同事的电脑都能打开的
image

@jiawulin001
Copy link
Contributor

@JunYiZzz
嗯嗯,现在看到了,上午我电脑不知道怎么打不开

@jiawulin001
Copy link
Contributor

我觉得这个并不是一个问题,clearable属性就是提供清空的功能,如果想在disabled时不能被清理就不应该添加clearable属性,个人看法。

@JunYiZzz
Copy link
Author

JunYiZzz commented Aug 8, 2019

我觉得这个并不是一个问题,clearable属性就是提供清空的功能,如果想在disabled时不能被清理就不应该添加clearable属性,个人看法。

试了下 input/select/cascader/datePicker/timePicker 这些输入型的组件在disabled的时候都是不能清空的,我觉得需要统一一下

@jiawulin001
Copy link
Contributor

我觉得这个并不是一个问题,clearable属性就是提供清空的功能,如果想在disabled时不能被清理就不应该添加clearable属性,个人看法。

试了下 input/select/cascader/datePicker/timePicker 这些输入型的组件在disabled的时候都是不能清空的,我觉得需要统一一下

嗯,如果作者其他的已经是这么处理了,那确实最好统一

jiawulin001 added a commit to jiawulin001/iview that referenced this issue Aug 9, 2019
inputIcon没有判断disabled属性,导致在禁用时也能清空内容
DebugIsFalse added a commit that referenced this issue Sep 4, 2019
icarusion added a commit to view-design/ViewUI that referenced this issue Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants