Topic: MDBSelect is not displaying the selected value onValueChange
markapiado
pro premium priority asked 3 years ago
Resources (screenshots, code snippets etc.)
Krzysztof Wilk
staff answered 3 years 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 pro premium priority commented 3 years ago
Got it right. Salamat! :)
Krzysztof Wilk staff commented 3 years ago
Glad I could help. If you have more questions - feel free to ask :)
Two Aow pro premium priority commented 2 years ago
This should be in the docs. There is not a functional example of select working, just how to output options
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Pro
- 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