surveyjs / survey-creator

An extensible JavaScript form builder library that generated form JSON schemas behind the scenes. It features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.

Home Page:https://surveyjs.io/open-source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An exception is raised when the `onMachineTranslate` event is handled and Survey Creator is switched to read-only mode

andrewtelnov opened this issue · comments

The following configuration may cause the exception in the Translation tab.

  const creator = new SurveyCreatorModel({ showTranslationTab: true });
  creator.onActiveTabChanging.add((sender, options) => {
    creator.readOnly = options.tabName !== "translation";
  });
  creator.onMachineTranslate.add((sender, options) => {});