fix: prevent premature modal closure in PrintPontoModal by deferring onClose call until PDF generation is successful; move abrirModalImpressao function for better organization

This commit is contained in:
2025-12-08 12:45:05 -03:00
parent fdfbd8b051
commit e46738c5bf
2 changed files with 9 additions and 6 deletions

View File

@@ -43,7 +43,8 @@
function handleGenerate() {
onGenerate(sections);
onClose();
// Não chamar onClose() aqui - o modal será fechado pelo callback onSuccess
// após a geração do PDF ser concluída com sucesso
}
function handleClose() {