Topic: Is there any way to reset the mdbSelect to empty after submitting a form
Spencer LeBlanc asked 5 years ago
So I am using mdb-select for some drop down options in a < form > tag and with normal html select and text input field nested in the parent form tag I can just call userFor.reset() to clear all the fields but while my mdb-datepicker and text input field reset, the mdb-select fields don't. Does anyone have any methods or examples for reseting the mdb-selectors tied to the function that submits the fields?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.6.0
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Arkadiusz Idzikowski staff commented 5 years ago
Could you provide an example html/ts code on which we can reproduce that? We've recently been notified about some issues with resetting mdb-select, but those problems should no longer occur in version 8.6.0.
According to our system, you use free version of MDB Angular. Please, provide us a number of your order or registered email to confirm your access to MDB Pro components and premium support. You can send it to a.idzikowski@mdbootstrap.com