@bigbinary/neeto-form-frontend 3.9.4 → 3.9.6

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/dist/BuildForm.js CHANGED
@@ -1017,7 +1017,7 @@ var formValidationSchema = function formValidationSchema() {
1017
1017
  field: t("neetoForm.questions.common.questionFields.field.questionType")
1018
1018
  })),
1019
1019
  label: yup.string().when("kind", function (kind, schema) {
1020
- return includes(kind, RICH_TEXT_QUESTIONS) ? schema.test(richTextFieldMissingErrorMessage(kind), function (value) {
1020
+ return includes(kind, RICH_TEXT_QUESTIONS) ? schema.test("required", richTextFieldMissingErrorMessage(kind), function (value) {
1021
1021
  return !isEditorEmpty(value);
1022
1022
  }) : requiredLabelValidation(schema, t("neetoForm.questions.common.questionFields.field.question"));
1023
1023
  }),