Преглед изворни кода

Fix CSS Edge glitch in archiving options (#2906)

With Edge, only setting `.hidden = true` does not make the element and
sub-elements properly visible.
Should not make any difference for other browser.
Alexandre Alapetite пре 6 година
родитељ
комит
e9213e89f4
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      p/scripts/category.js

+ 1 - 0
p/scripts/category.js

@@ -143,6 +143,7 @@ function archiving() {
 		if (e.target.id === 'use_default_purge_options') {
 		if (e.target.id === 'use_default_purge_options') {
 			slider.querySelectorAll('.archiving').forEach(function (element) {
 			slider.querySelectorAll('.archiving').forEach(function (element) {
 				element.hidden = e.target.checked;
 				element.hidden = e.target.checked;
+				if (!e.target.checked) element.style.visibility = 'visible'; 	//Help for Edge 44
 			});
 			});
 		}
 		}
 	});
 	});