Skip to content

Commit b9520d6

Browse files
SteveTheTechieHarris
authored andcommitted
Add cursor:pointer to option group labels if selectable
1 parent d981994 commit b9520d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.multiselect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@
414414
.html(self.linkInfo.collapse.icon)
415415
: null;
416416
var $optGroupLabel = $( document.createElement('a') )
417-
.addClass('ui-multiselect-grouplabel')
417+
.addClass('ui-multiselect-grouplabel'
418+
+ (self.options.groupsSelectable ? ' ui-multiselect-selectable' : ''))
418419
.html( elem.getAttribute('label') );
419420
var $optionGroup = $( document.createElement('ul') ).append(options);
420421
var $optGroupItem = $( document.createElement('li') )

0 commit comments

Comments
 (0)