@masterkeymaterial/ui 0.2.20 → 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.
|
@@ -2354,7 +2354,9 @@ class Formulario {
|
|
|
2354
2354
|
const valoresAtuais = this.values();
|
|
2355
2355
|
const novosValores = {};
|
|
2356
2356
|
for (const key of Object.keys(campos)) {
|
|
2357
|
-
if (
|
|
2357
|
+
if (campos[key].sanitize)
|
|
2358
|
+
continue;
|
|
2359
|
+
if (key in valoresAtuais) {
|
|
2358
2360
|
novosValores[key] = valoresAtuais[key];
|
|
2359
2361
|
}
|
|
2360
2362
|
}
|
|
@@ -2429,7 +2431,7 @@ class CampoDe {
|
|
|
2429
2431
|
tipo: IField.Button,
|
|
2430
2432
|
prop,
|
|
2431
2433
|
tituloClicavel,
|
|
2432
|
-
|
|
2434
|
+
sanitize: true, // Button é padrão true.
|
|
2433
2435
|
onClick: click,
|
|
2434
2436
|
...config,
|
|
2435
2437
|
};
|