survey-creator-js 2.1.1 → 2.2.1

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 Creator UI v2.1.1
2
+ * SurveyJS Creator UI v2.2.1
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -2003,6 +2003,7 @@ class SurveyLocStringEditor extends CreatorModelElement {
2003
2003
  super.componentDidUpdate(prevProps, prevState);
2004
2004
  this.baseModel.setLocString(this.locString);
2005
2005
  this.baseModel.afterRender();
2006
+ this.locString.onStringChanged.add(this.onChangedHandler);
2006
2007
  }
2007
2008
  componentWillUnmount() {
2008
2009
  super.componentWillUnmount();
@@ -2029,12 +2030,12 @@ class SurveyLocStringEditor extends CreatorModelElement {
2029
2030
  if (this.htmlValue.__html !== this.locString.renderedHtml) {
2030
2031
  this.htmlValue = { __html: this.locString.renderedHtml };
2031
2032
  }
2032
- control = (React.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
2033
+ control = (React.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true, tabIndex: this.baseModel.tabIndex,
2033
2034
  // style={this.style}
2034
2035
  dangerouslySetInnerHTML: this.htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
2035
2036
  }
2036
2037
  else {
2037
- control = (React.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
2038
+ control = (React.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, tabIndex: this.baseModel.tabIndex, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
2038
2039
  // style={this.style}
2039
2040
  key: this.locString.renderedHtml, onBlur: this.onBlur, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
2040
2041
  }
@@ -2831,8 +2832,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
2831
2832
  RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
2832
2833
 
2833
2834
  let Version;
2834
- Version = `${"2.1.1"}`;
2835
- checkLibraryVersion(`${"2.1.1"}`, "survey-creator-react");
2835
+ Version = `${"2.2.1"}`;
2836
+ checkLibraryVersion(`${"2.2.1"}`, "survey-creator-react");
2836
2837
 
2837
2838
  function renderSurveyCreator(creator, element, props = {}) {
2838
2839
  let node = element;