• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: AntD | Input.Search – Input disabled but keep the search button enabled

Resolved: AntD | Input.Search – Input disabled but keep the search button enabled

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I use Input.Search. The disabled prop makes both the input & the button disabled. Here I want to keep the button enabled while the input is disabled.
Is there solution?

Answer:

Use enterButton prop & provide a custom button component.
In the example, input is disabled but you can click the custom search button & see the console logs.

If you have better answer, please add a comment about this, thank you!

antd input reactjs search
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Shopware 400 Status Error “This value is too long. It should have 255 character or less.” When I Try Updating Database Table

01/04/2023

Resolved: Using AWK to count multiple patterns in a file

01/04/2023

Resolved: significance letter above bar graphic in wrong order

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.