@tft/crispr-forms 12.2.21 → 12.2.22

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.
@@ -728,11 +728,14 @@
728
728
  * @param options the array of options to search for option with corresponding value
729
729
  */
730
730
  AutocompleteFieldComponent.prototype.displayLabel = function (options) {
731
+ if (this.config.displayWith) {
732
+ return this.config.displayWith(options);
733
+ }
731
734
  return function (value) {
732
735
  var _a;
733
- return !!options && Array.isArray(options)
734
- ? (_a = options.find(function (option) { return option.value === value; })) === null || _a === void 0 ? void 0 : _a.label
735
- : value;
736
+ var label = !!options && Array.isArray(options)
737
+ ? (_a = options.find(function (option) { return JSON.stringify(option.value) === JSON.stringify(value); })) === null || _a === void 0 ? void 0 : _a.label : value;
738
+ return label;
736
739
  };
737
740
  };
738
741
  AutocompleteFieldComponent.prototype.handleSelect = function (event) {