@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 CHANGED
@@ -15,6 +15,7 @@ See [Demo](https://ng-select.github.io/ng-select) page.
15
15
 
16
16
  | Angular| ng-select|
17
17
  | ------|:------:|
18
+ | >=11.0.0 <12.0.0 | v6.x |
18
19
  | >=10.0.0 <11.0.0 | v5.x |
19
20
  | >=9.0.0 <10.0.0 | v4.x |
20
21
  | >=8.0.0 <9.0.0 | v3.x |
@@ -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;