Topic: MDBSelect is not displaying the selected value onValueChange

markapiado priority asked 1 year ago


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


Krzysztof Wilk staff answered 1 year 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 1 year ago

Got it right. Salamat! :)


Krzysztof Wilk staff commented 1 year 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


FREE CONSULTATION

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

Status

Closed

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