I use MDC-Web components. I'm opening and closing a dialog programmatically, but sometimes it doesn't close. I don't know if I am doing the right way in order to close the dialog.
closeDialog('dialog_gui');
function closeDialog(elementId){
let dialog = new mdc.dialog.MDCDialog(document.getElementById(elementId));
dialog.close();
}
Aucun commentaire:
Enregistrer un commentaire