Topic: How to reset the MDBSelect while clicking on a button in react hooks
Sohit kumar free asked 4 years ago
Expected behavior My requirement is when i click on Add button it should clear the values in the ui.
Actual behavior Internally its cleared the values but its not clearing in the UI the last selected one sticked with the select.
Resources (screenshots, code snippets etc.) the value i select is sticked with ui ..I use usestate to clear after clicking on Add internally its clear but not in the ui. Please help me
<MDBSelect selected={intent}
label={"Select Intent"} options={intentVals} getValue={(val) => SelectIntent(val[0])} />
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.22.0
- Device: Hp
- Browser: chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 3 years ago
Hi,
Are you a pro user?