@masterkeymaterial/ui 0.2.19 → 0.2.20

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.
@@ -2353,9 +2353,8 @@ class Formulario {
2353
2353
  const campos = this.campos();
2354
2354
  const valoresAtuais = this.values();
2355
2355
  const novosValores = {};
2356
- const tiposSemValor = [IField.Display, IField.Button];
2357
2356
  for (const key of Object.keys(campos)) {
2358
- if (key in valoresAtuais && tiposSemValor.indexOf(campos[key].tipo) === -1) {
2357
+ if (key in valoresAtuais && campos[key].sanitizeOnSubmit) {
2359
2358
  novosValores[key] = valoresAtuais[key];
2360
2359
  }
2361
2360
  }
@@ -2430,6 +2429,7 @@ class CampoDe {
2430
2429
  tipo: IField.Button,
2431
2430
  prop,
2432
2431
  tituloClicavel,
2432
+ sanitizeOnSubmit: true, // Button é padrão true.
2433
2433
  onClick: click,
2434
2434
  ...config,
2435
2435
  };