@o2s/modules.surveyjs 0.2.3 → 0.3.0

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.
@@ -42,11 +42,13 @@ const CustomSurveyQuestionText = (props) => {
42
42
  })) : (React.createElement("span", null, question.placeholder)))),
43
43
  React.createElement(PopoverContent, { className: "w-auto p-0" },
44
44
  React.createElement(Calendar, { mode: "single", selected: question.value ? new Date(question.value) : undefined, initialFocus: true, id: question.inputId, onSelect: (value) => {
45
+ // eslint-disable-next-line react-hooks/immutability
45
46
  question.value = value?.toISOString() || null;
46
47
  setOpen(false);
47
48
  }, showYearSwitcher: true, locale: localeMap[locale].locale || localeMap.en.locale })))));
48
49
  }
49
50
  return (React.createElement(InputWithLabel, { id: question.inputId, name: question.inputId, value: question.value?.toString() || '', placeholder: question.placeholder, disabled: question.isDisplayMode, onChange: (event) => {
51
+ // eslint-disable-next-line react-hooks/immutability
50
52
  question.value = event.target.value;
51
53
  }, "aria-invalid": !!question.errors?.length, className: cn(question.errors?.length && 'border-destructive', 'font-regular'), label: question.title }));
52
54
  };