comand-component-library 4.1.12 → 4.1.13
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
@@ -484,7 +484,7 @@ export default {
|
|
484
484
|
customSubmitFormData.set(configurationEntries[i], this.formData[configurationEntries[i]].value)
|
485
485
|
}
|
486
486
|
|
487
|
-
fetch(this.formAction, {method: "POST", body: customSubmitFormData}).then((response) => {
|
487
|
+
fetch(this.formAction, {method: this.cmdForm.formMethod || "POST", body: customSubmitFormData}).then((response) => {
|
488
488
|
if(response.ok) {
|
489
489
|
console.log("CmdBasicForm", "ok")
|
490
490
|
} else {
|
@@ -15,12 +15,12 @@ class ContactFormValidator {
|
|
15
15
|
formData.lastName.value, ContactFormValidator.PATTERN_SURNAME, this.label('form_error_invalid_surname'))
|
16
16
|
[formData.email.error, formData.email.errorMessage] = this.validateRequired(
|
17
17
|
formData.email.value, ContactFormValidator.PATTERN_EMAIL, this.label('form_error_invalid_email'))
|
18
|
-
[formData.
|
19
|
-
formData.
|
18
|
+
[formData.userMessage.error, formData.userMessage.errorMessage] = this.validateRequired(
|
19
|
+
formData.userMessage.value, ContactFormValidator.PATTERN_MESSAGE, this.label('form_error_invalid_message'))
|
20
20
|
formData.acceptPrivacy.error = false
|
21
21
|
formData.error = formData.lastName.error
|
22
22
|
|| formData.email.error
|
23
|
-
|| formData.
|
23
|
+
|| formData.userMessage.error
|
24
24
|
return formData
|
25
25
|
}
|
26
26
|
|