Topic: material_select multiple initially shows the first option which is incorrect.
joeynovak pro asked 6 years ago
On 4.4.5
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()) || '';
Jakub Strebeyko staff answered 6 years ago
MDB 4.5
release and the long list of problems it solves.
With Best Regards,
Kuba
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No