Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

输入框组件能否设置为无法获取焦点 #11148

Open
rumunanfeng opened this issue Nov 4, 2024 · 0 comments
Open

输入框组件能否设置为无法获取焦点 #11148

rumunanfeng opened this issue Nov 4, 2024 · 0 comments

Comments

@rumunanfeng
Copy link

实现场景:

对于Input-Text组件,我希望做到能不支持修改,但是通过其他方式设置值后,可以通过清除按钮清除该值。

存在的问题:

如果使用readonly或者disabled,虽然无法修改,但是也无法清除值。

当前方案:

目前想到的是在input焦点获取之后,通过事件去主动失去焦点。但是没有相关的失去焦点的动作。希望能有解决办法

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

No branches or pull requests

1 participant