survey-react-ui 2.5.19 → 2.5.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "2.5.19",
3
+ "version": "2.5.21",
4
4
  "license": "MIT",
5
5
  "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
6
6
  "homepage": "https://surveyjs.io/",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  "peerDependencies": {
54
- "survey-core": "2.5.19",
54
+ "survey-core": "2.5.21",
55
55
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
56
56
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
57
57
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.19
2
+ * surveyjs - Survey JavaScript library v2.5.21
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -4219,12 +4219,13 @@
4219
4219
  return this.questionBase.renderedValue;
4220
4220
  };
4221
4221
  SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
4222
+ if (this.question.showInputFieldComponent) {
4223
+ return (React__namespace.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderValueElement()));
4224
+ }
4222
4225
  if (this.question.readOnlyText) {
4223
4226
  return (React__namespace.createElement("div", { className: this.question.cssClasses.controlValue }, this.renderLocString(this.question.locReadOnlyText)));
4224
4227
  }
4225
- else {
4226
- return null;
4227
- }
4228
+ return null;
4228
4229
  };
4229
4230
  SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
4230
4231
  var _this = this;
@@ -4246,7 +4247,9 @@
4246
4247
  };
4247
4248
  SurveyQuestionDropdownBase.prototype.renderValueElement = function () {
4248
4249
  if (this.question.showInputFieldComponent) {
4249
- return ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName, { item: this.dropdownListModel.getSelectedAction(), question: this.question });
4250
+ var listModel = this.dropdownListModel;
4251
+ var actionItem = !!listModel ? listModel.getSelectedAction() : this.question.selectedItem;
4252
+ return ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName, { item: actionItem, question: this.question });
4250
4253
  }
4251
4254
  else if (this.question.showSelectedItemLocText) {
4252
4255
  return this.renderLocString(this.question.selectedItemLocText);
@@ -7810,7 +7813,7 @@
7810
7813
  return React__namespace.createElement(SurveyLocStringEditor, props);
7811
7814
  });
7812
7815
 
7813
- surveyCore.checkLibraryVersion("".concat("2.5.19"), "survey-react-ui");
7816
+ surveyCore.checkLibraryVersion("".concat("2.5.21"), "survey-react-ui");
7814
7817
 
7815
7818
  Object.defineProperty(exports, "Model", {
7816
7819
  enumerable: true,