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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user