Topic: Multiselect label does not move up when dynamically selecting options
kennovation asked 5 years ago
When upgrading from 4.7.1 to 4.8.4, I observed a regression where the label does not move up when I programmatically add and select options. This worked fine in 4.7.1, but in 4.8.4 the label doesn't move up and the selected items overlap the label in its initial position.
I am able to work around by adding $(my-label-selector).addClass('active');
Easy workaround, but seems that this is a bug that should be addressed.
By the way, before arriving at the addClass('active') solution, I did try various combinations of .focus(), .change(), .trigger('change') on the select element, but none had any effect.
MDBootstrap staff pro premium priority answered 5 years ago
Hi kennovation,
Thank you for contributing. We know about this problem and are currently trying to solve it. Right now one of our team members is taking care of this issue. It should be fixed in the next release.
Best Regards, Piotr
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.4
- Device: Mac
- Browser: Chrome
- OS: MacOS Mohave
- Provided sample code: No
- Provided link: No