@ng-select/ng-select 6.0.0 → 6.1.0
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/README.md +1 -0
- package/bundles/ng-select-ng-select.umd.js +1 -1
- package/bundles/ng-select-ng-select.umd.js.map +1 -1
- package/bundles/ng-select-ng-select.umd.min.js +1 -1
- package/bundles/ng-select-ng-select.umd.min.js.map +1 -1
- package/esm2015/lib/ng-select.component.js +2 -2
- package/fesm2015/ng-select-ng-select.js +1 -1
- package/fesm2015/ng-select-ng-select.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2449,7 +2449,7 @@
|
|
|
2449
2449
|
Object.defineProperty(NgSelectComponent.prototype, "compareWith", {
|
|
2450
2450
|
get: function () { return this._compareWith; },
|
|
2451
2451
|
set: function (fn) {
|
|
2452
|
-
if (!isFunction(fn)) {
|
|
2452
|
+
if (fn !== undefined && fn !== null && !isFunction(fn)) {
|
|
2453
2453
|
throw Error('`compareWith` must be a function.');
|
|
2454
2454
|
}
|
|
2455
2455
|
this._compareWith = fn;
|