Skip to content

Commit e9afbad

Browse files
committed
deleting the inline CSS for overflow on hide
1 parent e043971 commit e9afbad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $(document).on('click', function(event) {
7272
// Closing modal with x
7373
$('#close-modal').on('click', function() {
7474
$('#modal-container').hide();
75-
$('html').css('overflow', 'visible');
75+
$('html').css('overflow', '');
7676
});
7777

7878
$('#modal').on('click', function(event) {
@@ -82,7 +82,7 @@ $('#modal').on('click', function(event) {
8282
// Closing modal with background
8383
$('#modal-container').on('click', function(event) {
8484
$('#modal-container').hide();
85-
$('html').css('overflow', 'visible');
85+
$('html').css('overflow', '');
8686
});
8787

8888
// Navbar functionality

0 commit comments

Comments
 (0)