@bmlt-enabled/croutonjs 3.17.5 → 3.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crouton-core.js +7 -2
- package/crouton-core.min.js +1 -1
- package/crouton.js +7 -2
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +7 -2
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
package/crouton-core.js
CHANGED
|
@@ -15707,12 +15707,17 @@ Crouton.prototype.render = function() {
|
|
|
15707
15707
|
minimumResultsForSearch: 1,
|
|
15708
15708
|
dropdownCssClass: 'bmlt-drop',
|
|
15709
15709
|
matcher: function(params, data) {
|
|
15710
|
+
if (data.id === "a-")
|
|
15711
|
+
return data;
|
|
15710
15712
|
elementId = data.element.parentElement.id;
|
|
15713
|
+
if (params.hasOwnProperty('term')) {
|
|
15714
|
+
if (data.text.toUpperCase().indexOf(params.term.toUpperCase()) < 0)
|
|
15715
|
+
return null;
|
|
15716
|
+
}
|
|
15711
15717
|
dropdown = self.dropdownData.find((dropdown) => dropdown.elementId === elementId);
|
|
15712
15718
|
if (typeof dropdown === 'undefined')
|
|
15713
15719
|
return data;
|
|
15714
|
-
|
|
15715
|
-
return data;
|
|
15720
|
+
|
|
15716
15721
|
if (typeof dropdown.optionsShowing === 'undefined')
|
|
15717
15722
|
return data;
|
|
15718
15723
|
if (dropdown.optionsShowing.includes(data.text))
|