Skip to content

Commit

Permalink
Fix CSS Edge glitch in archiving options (#2906)
Browse files Browse the repository at this point in the history
With Edge, only setting `.hidden = true` does not make the element and
sub-elements properly visible.
Should not make any difference for other browser.
  • Loading branch information
Alkarex authored Apr 18, 2020
1 parent ae70374 commit e9213e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p/scripts/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function archiving() {
if (e.target.id === 'use_default_purge_options') {
slider.querySelectorAll('.archiving').forEach(function (element) {
element.hidden = e.target.checked;
if (!e.target.checked) element.style.visibility = 'visible'; //Help for Edge 44
});
}
});
Expand Down

0 comments on commit e9213e8

Please sign in to comment.