bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

enableClickableOptGroups not work correctly when optgroup and option mixed

Open ymmihw opened this issue 8 years ago • 3 comments

select code: <select name="select_projects" id="select_projects"> <optgroup label="client1"> <option value="">project2.xml</option> </optgroup> <option value="">project0.xml</option> </select>

ymmihw avatar Apr 27 '17 09:04 ymmihw

I had the same problem, did a quick - and hopefully - proper fix. See attached (sorry, I don't have time for GIT now)

Fix includes adding classes to optgroup>option elements (createOptgroup function, mass select onclick event) and some minor changes to .css. This version of css also includes necessary CSS from bootstrap (3.3.7) - I could not include whole bootstrap.css to my page due to incompatibility issues. Lines copied over from bootstrap.css are in the front of the file, bootstrap-multiselect's related are in the last line - minified, only new selector added.

bootstrap-multiselect-optgroup-fix.zip

V1pr avatar May 25 '17 18:05 V1pr

I might look into the fix, but for now I will update the documentation.

davidstutz avatar Oct 28 '17 20:10 davidstutz

i hope this gets fixed.. it's a very useful functionality

henzon-elitedigital avatar Mar 14 '21 17:03 henzon-elitedigital