Topic: MDBSelect clearBtn does not call 'onValueChange'
beenham priority asked 2 years ago
Expected behavior
When clicking on the 'clearBtn' to call the 'onValueChange'
Actual behavior
When clicking on the clearBtn, the select option is cleared, but the onValueChange is not called, causing a misalignment in the state
Resources (screenshots, code snippets etc.)
<MDBSelect
data={[
{ text: 'One', value: 1 },
{ text: 'Two', value: 2 },
{ text: 'Three', value: 3 },
{ text: 'Four', value: 4 }
]}
onValueChange={console.log}
clearBtn
/>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB React
- MDB Version: MDB5 4.0.0
- Device: PC
- Browser: Chrome
- OS: Win11
- Provided sample code: No
- Provided link: No
Krzysztof Wilk staff commented 2 years ago
Hi!
Thanks for reporting that bug. We'll fix it in the next release :)
jlopez994 free commented 2 years ago
Hello there,
any progress on this?
Krzysztof Wilk staff commented 2 years ago
Hi!
It should work now :)