Просмотр исходного кода

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 лет назад
Родитель
Сommit
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') {
 			slider.querySelectorAll('.archiving').forEach(function (element) {
 				element.hidden = e.target.checked;
+				if (!e.target.checked) element.style.visibility = 'visible'; 	//Help for Edge 44
 			});
 		}
 	});