cx 23.11.1 → 23.11.2
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/manifest.js +578 -578
- package/dist/widgets.js +4 -4
- package/package.json +1 -1
- package/src/widgets/form/LookupField.js +1 -1
package/dist/widgets.js
CHANGED
|
@@ -9301,12 +9301,12 @@ var LookupComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
9301
9301
|
if (this.props.multiple) {
|
|
9302
9302
|
var readOnly = data.disabled || data.readOnly;
|
|
9303
9303
|
if (isNonEmptyArray(data.records)) {
|
|
9304
|
-
var
|
|
9304
|
+
var _widget$onGetRecordDi;
|
|
9305
9305
|
var valueTextFormatter =
|
|
9306
|
-
(
|
|
9307
|
-
?
|
|
9306
|
+
(_widget$onGetRecordDi = widget.onGetRecordDisplayText) != null
|
|
9307
|
+
? _widget$onGetRecordDi
|
|
9308
9308
|
: function (record) {
|
|
9309
|
-
return record[
|
|
9309
|
+
return record[widget.valueTextField];
|
|
9310
9310
|
};
|
|
9311
9311
|
text = data.records.map(function (v, i) {
|
|
9312
9312
|
return /*#__PURE__*/ jsxs(
|
package/package.json
CHANGED
|
@@ -590,7 +590,7 @@ class LookupComponent extends VDOM.Component {
|
|
|
590
590
|
if (this.props.multiple) {
|
|
591
591
|
let readOnly = data.disabled || data.readOnly;
|
|
592
592
|
if (isNonEmptyArray(data.records)) {
|
|
593
|
-
let valueTextFormatter =
|
|
593
|
+
let valueTextFormatter = widget.onGetRecordDisplayText ?? ((record) => record[widget.valueTextField]);
|
|
594
594
|
text = data.records.map((v, i) => (
|
|
595
595
|
<div
|
|
596
596
|
key={i}
|