Add the opportunity to use non random ids in material selects

Topic: Add the opportunity to use non random ids in material selects

Schulz pro asked 3 years ago

At the moment the id for the <ul> element of material select is randomly generated. This approach makes those elements untestable in browser tests because they aren't clickable.   

Well we could select the element by class but this works only as long as we only have one select in the form.  

Please add the opportunity to genereate the id from the native select id. For example: select-options-NATIVE-SELECT-ID. This way the id would be predictable. 

Otherwise please provide a workaround to make material selects testable.  

Pls. look at this for more detailed information:

Btw. I'm using .12 unfortunately you still didn't update the version select in this form.

Sebastian Kaczmarek staff commented 3 years ago

BTW The version select has been just updated ;)

Sebastian Kaczmarek staff answered 3 years ago

I can see that you have found a temporary workaround for this under your question on SO.

We will definitely consider adding such feature to the Material Select. I will get back to you as soon as it is fixed.

Please insert min. 20 characters.


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



Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No