From 2246ec73706055d8c3db149bda0f1dd387ba9e7e Mon Sep 17 00:00:00 2001 From: Hanzei Date: Thu, 19 Jul 2018 15:15:30 +0200 Subject: Fix modal closing --- assets/js/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'assets') diff --git a/assets/js/index.js b/assets/js/index.js index 08ef756..1c868f7 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -20,5 +20,6 @@ $('.modal-close').click(function () { $(document).keypress(function(e) { if(e.which == 0) { $('.modal.is-active').removeClass('is-active'); + $("html").removeClass("modal-open"); } }); -- cgit v1.2.3