Topic: material_select multiple initially shows the first option which is incorrect.
joeynovak pro asked 4 years ago
If you use a multi select material_select() and you initially select no options it will show the first option in the label, even though it isn't checked. It behaves correctly if you check, and then un-check an option.
To fix this, I changed line 39 of material-select.js to be:
var label = $select.find('option:selected').html() || (!$select.is("[multiple]") && $select.find('option:first').html()) || '';
MDB 4.5release and the long list of problems it solves. With Best Regards, Kuba
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No