gd-sprest-bs 10.8.6 → 10.8.8
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/build/components/field/index.js +2 -2
- package/build/components/listForm/index.js +2 -2
- package/dist/gd-sprest-bs-icons.js +1 -1
- package/dist/gd-sprest-bs-icons.min.js +1 -1
- package/dist/gd-sprest-bs.js +1 -1
- package/dist/gd-sprest-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/field/index.ts +2 -2
- package/src/components/listForm/index.ts +2 -2
|
@@ -63,8 +63,8 @@ var Field = function (props) {
|
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
//
|
|
67
|
-
if (!existsFl) {
|
|
66
|
+
// Ensure a value exists and see if this was a fill-in choice
|
|
67
|
+
if (!existsFl && selectedValue) {
|
|
68
68
|
// See if this is a checkbox
|
|
69
69
|
if (isCheckbox) {
|
|
70
70
|
// Add the item
|
|
@@ -59,8 +59,8 @@ var renderDisplay = function (fieldName, props) {
|
|
|
59
59
|
var control = null;
|
|
60
60
|
var field = props.info.fields[fieldName];
|
|
61
61
|
var isRichText = field ? field.RichText : false;
|
|
62
|
-
var value = props.info.fieldValuesAsText[fieldName] || "";
|
|
63
|
-
var html = props.info.fieldValuesAsHtml[fieldName] || props.info.fieldValuesAsHtml[fieldName.replace(/\_/g, "_x005f_")] || "";
|
|
62
|
+
var value = props.info.fieldValuesAsText ? props.info.fieldValuesAsText[fieldName] || "" : "";
|
|
63
|
+
var html = props.info.fieldValuesAsHtml ? props.info.fieldValuesAsHtml[fieldName] || props.info.fieldValuesAsHtml[fieldName.replace(/\_/g, "_x005f_")] || "" : "";
|
|
64
64
|
// Ensure the field exists
|
|
65
65
|
if (field == null) {
|
|
66
66
|
// See if a value was found
|