We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4c0e2 commit afc5d8cCopy full SHA for afc5d8c
dist/js/multiselect.js
@@ -1,7 +1,7 @@
1
/*
2
* @license
3
*
4
- * Multiselect v2.5.2
+ * Multiselect v2.5.3
5
* http://crlcu.github.io/multiselect/
6
7
* Copyright (c) 2016-2018 Adrian Crisan
@@ -453,7 +453,13 @@ if (typeof jQuery === 'undefined') {
453
}
454
455
if ($option.is('optgroup')) {
456
- $destinationGroup.move($option.find('option'));
+ var disabledSelector = '';
457
+
458
+ if (self.options.ignoreDisabled) {
459
+ disabledSelector = ':not(:disabled)';
460
+ }
461
462
+ $destinationGroup.move($option.find('option' + disabledSelector));
463
} else {
464
$destinationGroup.move($option);
465
@@ -810,4 +816,3 @@ if (typeof jQuery === 'undefined') {
810
816
return $(elem).text().match(regex);
811
817
812
818
}));
813
-
0 commit comments