diff --git a/coinmanager/coinc/static/coinc/modules/modal.mjs b/coinmanager/coinc/static/coinc/modules/modal.mjs index 3731d8e..96f0cf9 100644 --- a/coinmanager/coinc/static/coinc/modules/modal.mjs +++ b/coinmanager/coinc/static/coinc/modules/modal.mjs @@ -100,6 +100,8 @@ function detach(modal) { $('#' + modal + '_action').off('click'); $('#' + modal + '_close').off('click'); $(document).off('keypress click'); + $('#' + modal + ' input:text:visible').each(function() { + $(this).val(''); }); } export { Modal, detach, hide };