Selected Options on a 'Searchable mdb-select' are


Topic: Selected Options on a 'Searchable mdb-select' are not shown

luzonline pro asked 6 years ago

*Expected behavior*The current 'selected' option must be displayed on the input form

*Actual behavior*An empty value is shown and when opening the dropdown with the search form, the correct selected option item is selected

enter image description here

enter image description here


Bartłomiej Malanowski staff pro premium answered 6 years ago

Could you please try to add the .md-selected class to your select?


luzonline pro commented 6 years ago

Well done, Thank you for your help.


Thomas Emmanuel commented 6 years ago

Hello, It dint wrk for me!.

Should i reinitialize the select after adding the class ".md-selected"?

Thanks


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
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Linux Ubuntu
  • Provided sample code: No
  • Provided link: No