diff --git a/molgenis-core-ui/src/main/resources/js/molgenis.js b/molgenis-core-ui/src/main/resources/js/molgenis.js
index <HASH>..<HASH> 100644
--- a/molgenis-core-ui/src/main/resources/js/molgenis.js
+++ b/molgenis-core-ui/src/main/resources/js/molgenis.js
@@ -706,6 +706,13 @@ $(function() {
 	    }, 0);
 	});
 	
+	// if modal closes, check if other modal remains open, if so, reapply the modal-open class to the body 
+	$(document).on('hidden.bs.modal', '.modal', function (event) {
+		if( $('.modal:visible').length ) {
+			$('body').addClass('modal-open');
+		}
+	});
+	
 	// focus first input on modal display
 	$(document).on('shown.bs.modal', '.modal', function() {
 		$(this).find('input:visible:first').focus();
Upon closing a modal, check if other modals remain open. If so, re-add
the modal-open class to the body element. Fixes #<I>