ui: finalize wizard hidden state toggles

This commit is contained in:
a.tolmachev
2026-05-02 14:53:11 +00:00
parent 8a4deb6249
commit 39cae4a557
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -88,10 +88,10 @@
element.textContent = tfKey('wizard.step_short', { step: stepNumber });
});
document.querySelectorAll('.step-pane').forEach(function(pane) { pane.style.display = 'none'; });
document.querySelectorAll('.step-pane').forEach(function(pane) { pane.hidden = true; });
var panelId = step === 3 ? step3PanelId() : 'step-panel-' + step;
var pane = document.getElementById(panelId);
if (pane) pane.style.display = '';
if (pane) pane.hidden = false;
document.querySelectorAll('.step-item').forEach(function(item, index) {
var stepNumber = index + 1;