fix(): Ajuste na abertura de janela modal
This commit is contained in:
parent
dcb98888b5
commit
5fbe14a838
1 changed files with 5 additions and 1 deletions
|
|
@ -11,7 +11,11 @@ function modalPage(create, width, sec, title, message, color, type, func, close,
|
||||||
if (create === true) {
|
if (create === true) {
|
||||||
|
|
||||||
// Remove o modal caso já exista
|
// Remove o modal caso já exista
|
||||||
document.getElementById('modal-block').remove();
|
const modal = document.getElementById('modal-block');
|
||||||
|
|
||||||
|
if (modal) {
|
||||||
|
modal.remove();
|
||||||
|
}
|
||||||
|
|
||||||
var div = '';
|
var div = '';
|
||||||
var color_modal = '';
|
var color_modal = '';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue