Topic: MDBSelect / MDBSelectOptions search not working properly (incorrect case matching)

rvmeode free asked 5 years ago


MDBSelectOptions search is not matching properly. 

See images below for reference:

Options displayed

LowerCase search (working fine)

UpperCase search (not working as expected)

Upon further investigation in

https://git.mdbootstrap.com/mdb/react/re-pro/blob/master/src/components/pro/SelectOptions.js,

this behavior is because when searching for a match the optionValue is set to lower case while the value (of search input) is not. 

I hope in the next update this will be fixed, also looking forward for an option for case sensitive search. :)


Anna Morawska staff answered 5 years ago


Hi there,

yes, it has been fixed in the version 4.10.0. Please check out this code snippet:https://mdbootstrap.com/docs/react/forms/search/#select

I've just tested it in the newly created CRA app and it works fine for me. Did you download the pro version of mdbreact?

Best,Ania


rvmeode free commented 5 years ago

Hello Ania,

I would like to confirm that it is indeed fixed (in 4.10.0) using the snippet you provided. Our current issue maybe due to the temporary fix we introduced. Anyways, thank you very much for your support.

-Rian Vincent


Anna Morawska staff commented 5 years ago

Great! Always happy to help :) Bes, Ania


Anna Morawska staff answered 5 years ago


Hi there,

we are working on it right now, so if there won't be any problems, it will be available after the next release, February 4th.

Best, Ania


rvmeode free commented 5 years ago

Hello Ania,

I would like to check if this issue was resolved in the latest release. I tried version 4.10.0 and now it seems that I cannot perform search on the select options. If this was fixed, can you please provide an example on how to make it work. Thank you :)

-Rian Vincent


Anna Morawska staff answered 5 years ago


Hi rvmeode,

Thank you for reporting this bug and that you dedicated your time to find a what's causing it. Indeed, we will try to fix this by the next release.

Thanks again,

Ania


rvmeode free commented 5 years ago

Hello Anna, I would like to ask on what target version or date will this be fixed? I just need to know if we have to create a temporary fix for this or if we will just wait for the new release.

Thanks. -Rian Vincent



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.8.4
  • Device: Laptop
  • Browser: Google Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No