survey-react-ui 2.5.16 → 2.5.18

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.16
2
+ * surveyjs - Survey JavaScript library v2.5.18
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
  */
@@ -5386,6 +5386,10 @@ class SurveyQuestionRating extends SurveyQuestionElementBase {
5386
5386
  this.question.setValueFromClick(event.target.value);
5387
5387
  this.setState({ value: this.question.value });
5388
5388
  }
5389
+ componentDidMount() {
5390
+ super.componentDidMount();
5391
+ this.setState({ value: this.question.value });
5392
+ }
5389
5393
  renderItem(item, index) {
5390
5394
  const renderedItem = ReactElementFactory.Instance.createElement(this.question.itemComponent, {
5391
5395
  question: this.question,
@@ -5986,6 +5990,13 @@ class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement {
5986
5990
  }
5987
5991
  return res;
5988
5992
  }
5993
+ getRenderedElements() {
5994
+ const res = super.getRenderedElements();
5995
+ if (!!this.question.contentQuestion) {
5996
+ res.push(this.question.contentQuestion);
5997
+ }
5998
+ return res;
5999
+ }
5989
6000
  renderElement() {
5990
6001
  return SurveyQuestion.renderQuestionBody(this.creator, this.question.contentQuestion);
5991
6002
  }
@@ -6423,7 +6434,7 @@ ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer,
6423
6434
  return React.createElement(SurveyLocStringEditor, props);
6424
6435
  });
6425
6436
 
6426
- checkLibraryVersion(`${"2.5.16"}`, "survey-react-ui");
6437
+ checkLibraryVersion(`${"2.5.18"}`, "survey-react-ui");
6427
6438
 
6428
6439
  export { CharacterCounterComponent, ComponentsContainer, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Survey, SurveyActionBar, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyNavigationBase, SurveyNavigationButton, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicProgressText, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRow, SurveyTimerPanel, SurveyWindow, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click };
6429
6440
  //# sourceMappingURL=survey-react-ui.mjs.map