Topic: MDBSelect is not displaying the selected value onValueChange

markapiado priority asked 2 years ago

Resources (screenshots, code snippets etc.) enter image description here

Krzysztof Wilk staff answered 2 years ago


Wrap your data into the useMemo/useState hook or assign it to the constant and declare it before the component declaration to memorize the value and prevent re-initialization of the MDBSelect :)

markapiado priority commented 2 years ago

Got it right. Salamat! :)

Krzysztof Wilk staff commented 2 years ago

Glad I could help. If you have more questions - feel free to ask :)

Two Aow priority commented 1 year ago

This should be in the docs. There is not a functional example of select working, just how to output options


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.1.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No