Topic: MDBSelect clearBtn does not call 'onValueChange'
beenham
priority
asked 9 months 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
- User: 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 9 months ago
Hi!
Thanks for reporting that bug. We'll fix it in the next release :)
jlopez994 free commented 6 months ago
Hello there,
any progress on this?
Krzysztof Wilk staff commented 6 months ago
Hi!
It should work now :)