Topic: MDBSelect is not displaying the selected value onValueChange

markapiado priority asked 6 months ago


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


Krzysztof Wilk staff answered 6 months ago


Hi!

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 6 months ago

Got it right. Salamat! :)


Krzysztof Wilk staff commented 6 months ago

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


Two Aow priority commented 4 months ago

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


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • User: 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