@masterkeymaterial/ui 0.2.19 → 0.2.21
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,10 @@ 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 (
|
|
2357
|
+
if (campos[key].sanitize)
|
|
2358
|
+
continue;
|
|
2359
|
+
if (key in valoresAtuais) {
|
|
2359
2360
|
novosValores[key] = valoresAtuais[key];
|
|
2360
2361
|
}
|
|
2361
2362
|
}
|
|
@@ -2430,6 +2431,7 @@ class CampoDe {
|
|
|
2430
2431
|
tipo: IField.Button,
|
|
2431
2432
|
prop,
|
|
2432
2433
|
tituloClicavel,
|
|
2434
|
+
sanitize: true, // Button é padrão true.
|
|
2433
2435
|
onClick: click,
|
|
2434
2436
|
...config,
|
|
2435
2437
|
};
|