comand-component-library 4.1.12 → 4.1.13

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.12",
3
+ "version": "4.1.13",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -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.additionalText.error, formData.additionalText.errorMessage] = this.validateRequired(
19
- formData.additionalText.value, ContactFormValidator.PATTERN_MESSAGE, this.label('form_error_invalid_message'))
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.additionalText.error
23
+ || formData.userMessage.error
24
24
  return formData
25
25
  }
26
26