Topic: Searchable MDBSelect does not autofocus the search input on React
Uriel Chami asked 6 years ago
Expected behavior When opening an MDBSelect like (1) the search label is autofocused, so I type my search right away.
Actual behavior When opening an MDBSelect like (1) the search label is not autofocused, so I need to click it to type my search.
Observation: I've scrolled through the jQuery documentation, and tried to use the MDBSelect there ( in section "Select with s search box" here ) and in jQuery version works as I expect.
Resources (screenshots, code snippets etc.)
Code snippet (1):
<MDBSelect
searchLabel="Search.."
search
options={[{checked: false, value: "Option1" }, {checked: false, value: "Option2" }]}
/>
Konrad Stępień staff answered 6 years ago
Hi @Uriel Chami,
Thanks for contact with me.
I am going to report the matter to the appropriate department and in the near future, we will make the component work according to your expectations. I apologize for the inconvenience, in case of further problems, I invite you to contact me.
Your regards, Konrad.
Oscar Bejarano pro answered 5 years ago
what about this?, it have never be done
Piotr Glejzer staff commented 5 years ago
We will try to add this to the next release. Have a nice day.
Piotr Glejzer staff commented 5 years ago
What kind of code do you use because I can't re-play this problem?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.16.0
- Device: All
- Browser: Chrome, Firefox, all.
- OS: Ubuntu
- Provided sample code: No
- Provided link: Yes