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
disable Search 组件的时候,应该同时禁用 Search 按钮 #10040
Comments
Translation of this issue: When ## disable Search component, the Search button should be disabled at the same time
Version3.4.1 EnvironmentExplorer Reproduction link[https://ant.design/components/input-en/] (https://ant.design/components/input-cn/) Steps to reproduceSetting the What is expected?When you disable the Search component, you should also disable the Search button What is actually happening?The button will not be disabled, causing the corresponding callback to be triggered when the button is clicked (although theoretically it is possible to intercept the execution of this callback logic, but this design is not elegant) |
Version
3.4.1
Environment
浏览器
Reproduction link
https://ant.design/components/input-cn/
Steps to reproduce
给
<Input.Search />
设置disabled
属性只会禁用输入框,而不会禁用按钮,这会造成潜在的问题What is expected?
disable Search 组件的时候,应该同时禁用 Search 按钮
What is actually happening?
按钮不会被禁用,造成点击按钮的时候,相应的回调会被触发(虽然理论上可以拦截这个回调逻辑的执行,但是这样的设计并不优雅)
The text was updated successfully, but these errors were encountered: