gd-sprest-bs 10.1.4 → 10.1.7

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.
@@ -157,12 +157,13 @@ var renderDisplay = function (fieldName, props) {
157
157
  }
158
158
  // Detect html
159
159
  if (/<*>/g.test(html)) {
160
- // Ensure this isn't a rich text field
161
- if (!isRichText) {
160
+ var isMultiLine = html.indexOf("<br />") >= 0 ? true : false;
161
+ // Ensure this isn't a rich text field or multi-line
162
+ if (!isRichText || !isMultiLine) {
162
163
  // Update the control to be read-only
163
164
  control.type = core_1.Components.FormControlTypes.Readonly;
164
165
  // Set the rendered event
165
- control.onControlRendered = isRichText ? null : function (control) {
166
+ control.onControlRendered = function (control) {
166
167
  // Get the target element
167
168
  var elTarget = control.el.querySelector("input") || control.el;
168
169
  // Override the html rendered