@danielgindi/selectbox 2.0.5 → 2.0.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/dist/lib.cjs.js +14 -4
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +14 -4
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +14 -4
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/DropList.js +9 -1
- package/lib/SelectBox.js +4 -2
- package/package.json +1 -1
package/dist/lib.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 2.0.
|
|
2
|
+
* @danielgindi/selectbox 2.0.7
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1184,7 +1184,15 @@
|
|
|
1184
1184
|
if (typeof fn === 'function') {
|
|
1185
1185
|
// Send the original items to the filter function
|
|
1186
1186
|
filteredItems = p.filterFn(
|
|
1187
|
-
p.items.map((x) =>
|
|
1187
|
+
p.items.map((x) => {
|
|
1188
|
+
const y = x[ItemSymbol];
|
|
1189
|
+
if (y !== undefined) {
|
|
1190
|
+
y[ItemSymbol] = x;
|
|
1191
|
+
return y;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
return x;
|
|
1195
|
+
}),
|
|
1188
1196
|
term);
|
|
1189
1197
|
|
|
1190
1198
|
if (Array.isArray(filteredItems)) {
|
|
@@ -4462,6 +4470,8 @@
|
|
|
4462
4470
|
});
|
|
4463
4471
|
};
|
|
4464
4472
|
}
|
|
4473
|
+
|
|
4474
|
+
p.actualFilterFn = fn;
|
|
4465
4475
|
p.dropList?.setFilterFn(fn);
|
|
4466
4476
|
return this;
|
|
4467
4477
|
}
|
|
@@ -5065,8 +5075,8 @@
|
|
|
5065
5075
|
filterThrottleWindow: p.filterThrottleWindow,
|
|
5066
5076
|
filterOnEmptyTerm: p.filterOnEmptyTerm,
|
|
5067
5077
|
filterGroups: p.treatGroupSelectionAsItems,
|
|
5068
|
-
filterEmptyGroups: p.treatGroupSelectionAsItems,
|
|
5069
|
-
filterFn: p.
|
|
5078
|
+
filterEmptyGroups: !p.treatGroupSelectionAsItems,
|
|
5079
|
+
filterFn: p.actualFilterFn,
|
|
5070
5080
|
|
|
5071
5081
|
positionOptionsProvider: () => this._getDropListPositionOptions(),
|
|
5072
5082
|
|