survey-js-ui 1.12.9 → 1.12.10

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-js-ui",
3
- "version": "1.12.9",
3
+ "version": "1.12.10",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -23,7 +23,7 @@
23
23
  "typings": "./typings/src/entries/js-ui.d.ts",
24
24
  "dependencies": {},
25
25
  "peerDependencies": {
26
- "survey-core": "1.12.9",
26
+ "survey-core": "1.12.10",
27
27
  "@types/react-dom": "*",
28
28
  "@types/react": "*"
29
29
  }
package/survey-js-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.9
2
+ * surveyjs - Survey JavaScript library v1.12.10
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1650,17 +1650,14 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
1650
1650
  };
1651
1651
  SurveyActionBar.prototype.componentWillUnmount = function () {
1652
1652
  _super.prototype.componentWillUnmount.call(this);
1653
- if (!!this.model.hasActions) {
1654
- this.model.resetResponsivityManager();
1655
- }
1653
+ this.model.resetResponsivityManager();
1656
1654
  };
1657
1655
  SurveyActionBar.prototype.componentDidUpdate = function (prevProps, prevState) {
1658
1656
  _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
1659
- if (prevProps.model == this.props.model) {
1660
- return;
1657
+ if (prevProps.model != this.props.model) {
1658
+ prevProps.model.resetResponsivityManager();
1661
1659
  }
1662
1660
  if (!!this.model.hasActions) {
1663
- this.model.resetResponsivityManager();
1664
1661
  var container = this.rootRef.current;
1665
1662
  if (!!container) {
1666
1663
  this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
@@ -9598,7 +9595,7 @@ var preact = compat_module_namespaceObject;
9598
9595
 
9599
9596
 
9600
9597
 
9601
- Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.9", "survey-js-ui");
9598
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.10", "survey-js-ui");
9602
9599
 
9603
9600
 
9604
9601
  /***/ }),